This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33837] New: [4.1/4.2/4.3 regresssion] ICE with invalid use of decltype
- 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: 20 Oct 2007 21:41:08 -0000
- Subject: [Bug c++/33837] New: [4.1/4.2/4.3 regresssion] ICE with invalid use of decltype
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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