This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33839] New: [4.3 regresssion] ICE with 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:49:59 -0000
- Subject: [Bug c++/33839] New: [4.3 regresssion] ICE with decltype
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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