public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18729] New: [4.0 regression] ICE on invalid typedef
@ 2004-11-29 23:43 reichelt at gcc dot gnu dot org
  2004-11-29 23:44 ` [Bug c++/18729] " reichelt at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-11-29 23:43 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet causes an ICE on mainline.

=================================
template<typename T> struct A
{
    typedef typename T::X Y;
};

A<int>::Y y;
=================================

bug.cc: In instantiation of 'A<int>':
bug.cc:6:   instantiated from here
bug.cc:3: error: 'int' is not a class, struct, or union type
bug.cc:6: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in cp_parser_class_name, at cp/parser.c:12235
Please submit a full bug report,

Mark, the regression was introduced by your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-11/msg01422.html
Could you please have a look?

-- 
           Summary: [4.0 regression] ICE on invalid typedef
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          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


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


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

end of thread, other threads:[~2004-12-01 16:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-29 23:43 [Bug c++/18729] New: [4.0 regression] ICE on invalid typedef reichelt at gcc dot gnu dot org
2004-11-29 23:44 ` [Bug c++/18729] " reichelt at gcc dot gnu dot org
2004-11-29 23:48 ` pinskia at gcc dot gnu dot org
2004-12-01 11:33 ` nathan at gcc dot gnu dot org
2004-12-01 16:38 ` nathan at gcc dot gnu dot org
2004-12-01 16:38 ` 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).