public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51226] New: [c++0x] ICE with opaque enum and invalid template
@ 2011-11-19 20:37 reichelt at gcc dot gnu.org
  2012-01-19  6:02 ` [Bug c++/51226] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-19 20:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51226

             Bug #: 51226
           Summary: [c++0x] ICE with opaque enum and invalid template
    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.6.0:

=======================================
template<int> struct A
{
  enum E : int;
};

template<> enum A<>::E : int {};
=======================================

bug.cc:6:19: error: wrong number of template arguments (0, should be 1)
bug.cc:1:22: error: provided for 'template<int <anonymous> > struct A'
bug.cc:6:26: internal compiler error: in is_ancestor, at cp/name-lookup.c:2586
Please submit a full bug report, [etc.]


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-08 15:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-19 20:37 [Bug c++/51226] New: [c++0x] ICE with opaque enum and invalid template reichelt at gcc dot gnu.org
2012-01-19  6:02 ` [Bug c++/51226] " pinskia at gcc dot gnu.org
2013-05-07  0:27 ` paolo.carlini at oracle dot com
2013-05-08 15:23 ` 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).