The following valid code snippet triggers an ICE on mainline:

===========================================================
template<int> struct A;

template<> struct A<0>
{
  typedef int X __attribute((aligned(4)));
};

template<typename T> void foo(const A<0>::X&, T);

void bar()
{
  foo(A<0>::X(), 0);
}
===========================================================

bug.cc: In function 'void bar()':
bug.cc:12: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with attribute and template
                    specialization
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-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=35097

Reply via email to