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

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).