public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/38638]  New: [4.2/4.3/4.4 regression] ICE superfluous 'typename'
@ 2008-12-26 22:36 reichelt at gcc dot gnu dot org
  2008-12-26 22:37 ` [Bug c++/38638] " reichelt at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-12-26 22:36 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.2.0:

========================================
struct A
{
  template<int> void foo(int i)
  {
    typename A::foo<0>(i);
  }
};
========================================

bug.cc: In member function 'void A::foo(int)':
bug.cc:5: internal compiler error: in start_decl, at cp/decl.c:4189
Please submit a full bug report, [etc.]

The code was wrongly accepted by GCC 3.4.x, 4.0.x, and 4.1.x.
It was correctly rejected by GCC 3.3.6 and earlier.


-- 
           Summary: [4.2/4.3/4.4 regression] ICE superfluous 'typename'
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-11-08  4:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-26 22:36 [Bug c++/38638] New: [4.2/4.3/4.4 regression] ICE superfluous 'typename' reichelt at gcc dot gnu dot org
2008-12-26 22:37 ` [Bug c++/38638] " reichelt at gcc dot gnu dot org
2008-12-27  1:31 ` pinskia at gcc dot gnu dot org
2008-12-29 22:52 ` rguenth at gcc dot gnu dot org
2008-12-31 23:09 ` pinskia at gcc dot gnu dot org
2008-12-31 23:18 ` pinskia at gcc dot gnu dot org
2009-03-27  7:21 ` andreasmeier80 at gmx dot de
2009-03-27 13:37 ` hjl at gcc dot gnu dot org
2009-03-31 21:05 ` [Bug c++/38638] [4.3 " jsm28 at gcc dot gnu dot org
2009-04-16 15:45 ` pinskia at gcc dot gnu dot org
2009-08-04 12:45 ` rguenth at gcc dot gnu dot org
2009-11-08  4:18 ` jason 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).