[Bug c++/33837] New: [4.1/4.2/4.3 regresssion] ICE with invalid use of decltype
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 20 21:41:00 GMT 2007
The following invalid code snippet triggers an ICE on mainline:
===============================
void foo()
{
__decltype A::foo();
}
===============================
bug.cc: In function 'void foo()':
bug.cc:3: error: 'A' was not declared in this scope
bug.cc:3: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in build_reference_type_for_mode, at tree.c:5463
Please submit a full bug report, [etc.]
The problem appeared between 2007-07-16 and 2007-08-15, presumably with
the introduction of decltype:
2007-07-27 Douglas Gregor <doug.gregor@gmail.com>
* typeck.c (structural_comptypes): Compare DECLTYPE_TYPE nodes.
* cp-tree.def (DECLTYPE_TYPE): New.
* error.c (dump_type): Dump DECLTYPE_TYPE nodes.
...
--
Summary: [4.1/4.2/4.3 regresssion] ICE with invalid use of
decltype
Product: gcc
Version: 4.3.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=33837
More information about the Gcc-bugs
mailing list