This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37556] New: [4.4 regression] ICE with invalid typedef
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Sep 2008 06:36:27 -0000
- Subject: [Bug c++/37556] New: [4.4 regression] ICE with invalid typedef
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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