[Bug c++/27806] New: [4.0/4.1/4.2 regression] ICE with invalid ptr-to-member
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon May 29 21:08:00 GMT 2006
The following invalid code snippet causes an ICE since GCC 3.4.5:
=====================
struct A {};
void foo()
{
p;
extern int A::* p;
}
=====================
bug4.cc: In function 'void foo()':
bug4.cc:5: error: 'p' was not declared in this scope
bug4.cc:6: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in original_type, at cp/typeck.c:231
Please submit a full bug report, [etc.]
--
Summary: [4.0/4.1/4.2 regression] ICE with invalid ptr-to-member
Product: gcc
Version: 4.2.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=27806
More information about the Gcc-bugs
mailing list