public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/38256] New: [4.4 regression] ICE with "operator auto"
@ 2008-11-24 20:45 reichelt at gcc dot gnu dot org
2008-11-24 20:45 ` [Bug c++/38256] " reichelt at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-11-24 20:45 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE on mainline:
==========================================
template<int> struct A
{
template<typename T> operator T();
};
void foo()
{
A<0>().operator auto();
}
==========================================
bug.cc: In function 'void foo()':
bug.cc:8: internal compiler error: tree check: expected function_decl, have
template_decl in build_over_call, at cp/call.c:5123
Please submit a full bug report, [etc.]
--
Summary: [4.4 regression] ICE with "operator auto"
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38256
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/38256] [4.4 regression] ICE with "operator auto"
2008-11-24 20:45 [Bug c++/38256] New: [4.4 regression] ICE with "operator auto" reichelt at gcc dot gnu dot org
@ 2008-11-24 20:45 ` reichelt at gcc dot gnu dot org
2008-11-25 0:14 ` uros at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-11-24 20:45 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38256
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/38256] [4.4 regression] ICE with "operator auto"
2008-11-24 20:45 [Bug c++/38256] New: [4.4 regression] ICE with "operator auto" reichelt at gcc dot gnu dot org
2008-11-24 20:45 ` [Bug c++/38256] " reichelt at gcc dot gnu dot org
@ 2008-11-25 0:14 ` uros at gcc dot gnu dot org
2008-11-25 0:18 ` ubizjak at gmail dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: uros at gcc dot gnu dot org @ 2008-11-25 0:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from uros at gcc dot gnu dot org 2008-11-25 00:13 -------
Subject: Bug 38256
Author: uros
Date: Tue Nov 25 00:12:15 2008
New Revision: 142177
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142177
Log:
PR target/38256
* config/i386/sync.md (memory_barrier_nosse): New insn
(memory_barrier): Generate memory_barrier_nosse insn for !TARGET_SSE2.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/sync.md
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38256
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/38256] [4.4 regression] ICE with "operator auto"
2008-11-24 20:45 [Bug c++/38256] New: [4.4 regression] ICE with "operator auto" reichelt at gcc dot gnu dot org
2008-11-24 20:45 ` [Bug c++/38256] " reichelt at gcc dot gnu dot org
2008-11-25 0:14 ` uros at gcc dot gnu dot org
@ 2008-11-25 0:18 ` ubizjak at gmail dot com
2008-11-28 8:21 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ubizjak at gmail dot com @ 2008-11-25 0:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from ubizjak at gmail dot com 2008-11-25 00:17 -------
(In reply to comment #1)
> Subject: Bug 38256
Oops, wrong PR number in ChangeLog.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38256
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/38256] [4.4 regression] ICE with "operator auto"
2008-11-24 20:45 [Bug c++/38256] New: [4.4 regression] ICE with "operator auto" reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-11-25 0:18 ` ubizjak at gmail dot com
@ 2008-11-28 8:21 ` jakub at gcc dot gnu dot org
2008-11-29 3:17 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-28 8:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2008-11-28 08:20 -------
Moving the error ("invalid use of %<auto%> in conversion operator");
diagnostics to cp_parser_conversion_type_id (or caller), although it fixes
this testcase, doesn't work too well, because then for auto9.C some of these
errors are reported twice (during tentative parsing and then again when
parsing for the second time). So it should be probably diagnosed later, but
I'm unsure where. Jason?
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38256
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/38256] [4.4 regression] ICE with "operator auto"
2008-11-24 20:45 [Bug c++/38256] New: [4.4 regression] ICE with "operator auto" reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-11-28 8:21 ` jakub at gcc dot gnu dot org
@ 2008-11-29 3:17 ` pinskia at gcc dot gnu dot org
2008-12-03 20:15 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-11-29 3:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2008-11-29 03:15 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-11-29 03:15:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38256
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/38256] [4.4 regression] ICE with "operator auto"
2008-11-24 20:45 [Bug c++/38256] New: [4.4 regression] ICE with "operator auto" reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-11-29 3:17 ` pinskia at gcc dot gnu dot org
@ 2008-12-03 20:15 ` jason at gcc dot gnu dot org
2008-12-03 21:45 ` jason at gcc dot gnu dot org
2008-12-03 21:46 ` jason at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-12-03 20:15 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2008-11-29 03:15:59 |2008-12-03 20:12:05
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38256
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/38256] [4.4 regression] ICE with "operator auto"
2008-11-24 20:45 [Bug c++/38256] New: [4.4 regression] ICE with "operator auto" reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2008-12-03 20:15 ` jason at gcc dot gnu dot org
@ 2008-12-03 21:45 ` jason at gcc dot gnu dot org
2008-12-03 21:46 ` jason at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-12-03 21:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jason at gcc dot gnu dot org 2008-12-03 21:43 -------
Subject: Bug 38256
Author: jason
Date: Wed Dec 3 21:42:22 2008
New Revision: 142410
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142410
Log:
PR c++/38256
* parser.c (cp_parser_conversion_type_id): Diagnose
'operator auto' here.
* decl.c (grokdeclarator): Not here.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/auto11.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38256
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/38256] [4.4 regression] ICE with "operator auto"
2008-11-24 20:45 [Bug c++/38256] New: [4.4 regression] ICE with "operator auto" reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2008-12-03 21:45 ` jason at gcc dot gnu dot org
@ 2008-12-03 21:46 ` jason at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-12-03 21:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jason at gcc dot gnu dot org 2008-12-03 21:43 -------
fixed.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38256
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-12-03 21:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-24 20:45 [Bug c++/38256] New: [4.4 regression] ICE with "operator auto" reichelt at gcc dot gnu dot org
2008-11-24 20:45 ` [Bug c++/38256] " reichelt at gcc dot gnu dot org
2008-11-25 0:14 ` uros at gcc dot gnu dot org
2008-11-25 0:18 ` ubizjak at gmail dot com
2008-11-28 8:21 ` jakub at gcc dot gnu dot org
2008-11-29 3:17 ` pinskia at gcc dot gnu dot org
2008-12-03 20:15 ` jason at gcc dot gnu dot org
2008-12-03 21:45 ` jason at gcc dot gnu dot org
2008-12-03 21:46 ` jason at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).