The following valid code snippet triggers an ICE on mainline: ========================================== template<typename T> struct A { void foo() const; } __attribute((aligned(4)));
template<typename T> void A<T>::foo() const {} ========================================== bug.cc:6: internal compiler error: canonical types differ for identical types const A<T> and const A<T> Please submit a full bug report, [etc.] The ICE is pretty recent, it appeared between 2008-01-22 and 2008-01-28. -- Summary: [4.3 regression] ICE with attribute "aligned" for template classes 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=35074