public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/51422] New: [c++0x] ICE with invalid lambda expression @ 2011-12-05 7:56 reichelt at gcc dot gnu.org 2012-01-21 10:07 ` [Bug c++/51422] " pinskia at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: reichelt at gcc dot gnu.org @ 2011-12-05 7:56 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51422 Bug #: 51422 Summary: [c++0x] ICE with invalid lambda expression 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 on trunk: =================================== template<typename> struct A {}; void foo() { [i] { A<decltype(i)>(); }; [i] { A<decltype(i)>(); }; } =================================== bug.cc: In function 'void foo()': bug.cc:5:4: error: 'i' was not declared in this scope bug.cc: In lambda function: bug.cc:5:22: error: template argument 1 is invalid bug.cc: In lambda function: bug.cc:6:20: internal compiler error: in is_normal_capture_proxy, at cp/semantics.c:8797 Please submit a full bug report, [etc.] ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51422] [c++0x] ICE with invalid lambda expression 2011-12-05 7:56 [Bug c++/51422] New: [c++0x] ICE with invalid lambda expression reichelt at gcc dot gnu.org @ 2012-01-21 10:07 ` pinskia at gcc dot gnu.org 2012-08-25 17:00 ` paolo.carlini at oracle dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu.org @ 2012-01-21 10:07 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51422 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-01-21 Ever Confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-21 08:22:49 UTC --- Confirmed. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51422] [c++0x] ICE with invalid lambda expression 2011-12-05 7:56 [Bug c++/51422] New: [c++0x] ICE with invalid lambda expression reichelt at gcc dot gnu.org 2012-01-21 10:07 ` [Bug c++/51422] " pinskia at gcc dot gnu.org @ 2012-08-25 17:00 ` paolo.carlini at oracle dot com 2012-10-07 23:06 ` paolo at gcc dot gnu.org 2012-10-07 23:07 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2012-08-25 17:00 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51422 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot |gnu.org |com --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-08-25 17:00:31 UTC --- On it. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51422] [c++0x] ICE with invalid lambda expression 2011-12-05 7:56 [Bug c++/51422] New: [c++0x] ICE with invalid lambda expression reichelt at gcc dot gnu.org 2012-01-21 10:07 ` [Bug c++/51422] " pinskia at gcc dot gnu.org 2012-08-25 17:00 ` paolo.carlini at oracle dot com @ 2012-10-07 23:06 ` paolo at gcc dot gnu.org 2012-10-07 23:07 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo at gcc dot gnu.org @ 2012-10-07 23:06 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51422 --- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-10-07 23:06:20 UTC --- Author: paolo Date: Sun Oct 7 23:06:16 2012 New Revision: 192187 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192187 Log: /cp 2012-10-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51422 * semantics.c (is_normal_capture_proxy): Return true for error_mark_node as DECL_VALUE_EXPR. /testsuite 2012-10-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51422 * g++.dg/cpp0x/lambda/lambda-ice8.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice8.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51422] [c++0x] ICE with invalid lambda expression 2011-12-05 7:56 [Bug c++/51422] New: [c++0x] ICE with invalid lambda expression reichelt at gcc dot gnu.org ` (2 preceding siblings ...) 2012-10-07 23:06 ` paolo at gcc dot gnu.org @ 2012-10-07 23:07 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2012-10-07 23:07 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51422 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.8.0 --- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-07 23:07:22 UTC --- Fixed for 4.8.0. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-07 23:07 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-12-05 7:56 [Bug c++/51422] New: [c++0x] ICE with invalid lambda expression reichelt at gcc dot gnu.org 2012-01-21 10:07 ` [Bug c++/51422] " pinskia at gcc dot gnu.org 2012-08-25 17:00 ` paolo.carlini at oracle dot com 2012-10-07 23:06 ` paolo at gcc dot gnu.org 2012-10-07 23:07 ` 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).