public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13314] New: [3.4 regression] ICE when omitting template parameter of a sub-class
@ 2003-12-05 13:41 reichelt at gcc dot gnu dot org
  2003-12-05 18:54 ` [Bug c++/13314] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-12-05 13:41 UTC (permalink / raw)
  To: gcc-bugs

Mainline issues an ICE for the following code snippet (from PR 4868):

============================================
struct A { template <int> struct B; };
struct A::B {};
A::B<0> b;
============================================

x.cc:2: error: an explicit specialization must be preceded by 'template <>'
x.cc:2: error: explicit specialization of non-template `A::B<<anonymous> >'
x.cc:2: internal compiler error: in poplevel, at cp/decl.c:446
Please submit a full bug report, [etc.]

This is a regression introduced by Mark's patch for PR 9127

http://gcc.gnu.org/ml/gcc-patches/2003-12/msg00441.html
http://gcc.gnu.org/ml/gcc-cvs/2003-12/msg00194.html

Mark, could you please have a look?

-- 
           Summary: [3.4 regression] ICE when omitting template parameter of
                    a sub-class
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,mark at codesourcery dot
                    com


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


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

end of thread, other threads:[~2003-12-06  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-05 13:41 [Bug c++/13314] New: [3.4 regression] ICE when omitting template parameter of a sub-class reichelt at gcc dot gnu dot org
2003-12-05 18:54 ` [Bug c++/13314] " pinskia at gcc dot gnu dot org
2003-12-05 22:53 ` reichelt at gcc dot gnu dot org
2003-12-06  5:00 ` mmitchel at gcc dot gnu dot org
2003-12-06  5:00 ` cvs-commit at gcc dot gnu dot org

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