[Bug c++/33839] New: [4.3 regresssion] ICE with decltype
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 20 21:50:00 GMT 2007
The following code snippet triggers an ICE on mainline
(I'm not sure whether this is valid or not):
===============================
template<int> struct A;
void foo()
{
__decltype A<0>;
}
===============================
bug5.cc: In function 'void foo()':
bug5.cc:9: internal compiler error: in cp_parser_lookup_name, at
cp/parser.c:16084
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.3 regresssion] ICE with decltype
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, 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=33839
More information about the Gcc-bugs
mailing list