public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51464] New: [c++0x] ICE with invalid use of []
@ 2011-12-08 8:51 reichelt at gcc dot gnu.org
2011-12-08 11:27 ` [Bug c++/51464] " paolo.carlini at oracle dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-12-08 8:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51464
Bug #: 51464
Summary: [c++0x] ICE with invalid use of []
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
The following invalid code snippet triggers an ICE since GCC 4.5.0:
===========================================
template<int = sizeof([])> struct A {};
===========================================
bug.cc:1:23: error: lambda-expression in unevaluated context
bug.cc:1:24: error: definition of 'struct<lambda>' inside template parameter
list
bug.cc:1:24: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in begin_lambda_type, at cp/semantics.c:8609
Please submit a full bug report, [etc.]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/51464] [c++0x] ICE with invalid use of []
2011-12-08 8:51 [Bug c++/51464] New: [c++0x] ICE with invalid use of [] reichelt at gcc dot gnu.org
@ 2011-12-08 11:27 ` paolo.carlini at oracle dot com
2011-12-14 0:37 ` paolo at gcc dot gnu.org
2011-12-14 0:49 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-08 11:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51464
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011-12-08
AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot
|gnu.org |com
Target Milestone|--- |4.7.0
Ever Confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-08 11:09:08 UTC ---
On it.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/51464] [c++0x] ICE with invalid use of []
2011-12-08 8:51 [Bug c++/51464] New: [c++0x] ICE with invalid use of [] reichelt at gcc dot gnu.org
2011-12-08 11:27 ` [Bug c++/51464] " paolo.carlini at oracle dot com
@ 2011-12-14 0:37 ` paolo at gcc dot gnu.org
2011-12-14 0:49 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-12-14 0:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51464
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-12-14 00:36:19 UTC ---
Author: paolo
Date: Wed Dec 14 00:36:15 2011
New Revision: 182320
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182320
Log:
/cp
2011-12-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51464
* semantics.c (begin_lambda_type): Check begin_class_definition return
value for error_mark_node.
* parser.c (cp_parser_lambda_expression): Check begin_lambda_type
return value for error_mark_node.
/testsuite
2011-12-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51464
* g++.dg/cpp0x/lambda/lambda-ice6.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice6.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/51464] [c++0x] ICE with invalid use of []
2011-12-08 8:51 [Bug c++/51464] New: [c++0x] ICE with invalid use of [] reichelt at gcc dot gnu.org
2011-12-08 11:27 ` [Bug c++/51464] " paolo.carlini at oracle dot com
2011-12-14 0:37 ` paolo at gcc dot gnu.org
@ 2011-12-14 0:49 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-14 0:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51464
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-14 00:37:05 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-12-14 0:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-08 8:51 [Bug c++/51464] New: [c++0x] ICE with invalid use of [] reichelt at gcc dot gnu.org
2011-12-08 11:27 ` [Bug c++/51464] " paolo.carlini at oracle dot com
2011-12-14 0:37 ` paolo at gcc dot gnu.org
2011-12-14 0:49 ` paolo.carlini at oracle dot com
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).