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

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