This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33836] New: [4.1/4.2/4.3 regresssion] ICE with invalid use of &&
- 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:33:51 -0000
- Subject: [Bug c++/33836] New: [4.1/4.2/4.3 regresssion] ICE with invalid use of &&
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 3.4.0:
===============================
template<int N> struct A
{
enum { M = && N };
};
A<0> a;
===============================
bug.cc:3: error: label 'N' referenced outside of any function
bug.cc: In instantiation of 'A<0>':
bug.cc:6: instantiated from here
bug.cc:3: internal compiler error: in perform_integral_promotions, at
cp/typeck.c:1613
Please submit a full bug report, [etc.]
--
Summary: [4.1/4.2/4.3 regresssion] ICE with invalid use of &&
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=33836