public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37556]  New: [4.4 regression] ICE with invalid typedef
@ 2008-09-17  6:37 reichelt at gcc dot gnu dot org
  2008-09-17  6:37 ` [Bug c++/37556] " reichelt at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-17  6:37 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline:

========================
struct A
{
  void foo();
};

typedef void (A::T)();

void bar(T);

void baz()
{
  bar(&A::foo);
}
========================

bug.cc:6: error: typedef name may not be a nested-name-specifier
bug.cc:8: error: parameter '<anonymous>' invalidly declared method type
bug.cc: In function 'void baz()':
bug.cc:12: internal compiler error: canonical types differ for identical types
void (A::*)() and void (A::*)()
Please submit a full bug report, [etc.]

The regression appeared between 2008-07-29 and 2008-08-23.

The bug is related to PR37555, but a more recent regression.


-- 
           Summary: [4.4 regression] ICE with invalid typedef
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, 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=37556


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

end of thread, other threads:[~2008-09-30 20:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-17  6:37 [Bug c++/37556] New: [4.4 regression] ICE with invalid typedef reichelt at gcc dot gnu dot org
2008-09-17  6:37 ` [Bug c++/37556] " reichelt at gcc dot gnu dot org
2008-09-18 19:42 ` pinskia at gcc dot gnu dot org
2008-09-26 22:54 ` simartin at users dot sourceforge dot net
2008-09-27 11:01 ` simartin at gcc dot gnu dot org
2008-09-30 19:28 ` simartin at gcc dot gnu dot org
2008-09-30 20:00 ` simartin 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).