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

Reply via email to