The following valid code snippet triggers an ICE since GCC 3.3:
============================================
typedef double X __attribute((may_alias)) ;
template<typename> struct A
{
A();
};
A<X> a;
============================================
bug.cc: In function 'void __static_initialization_and_destruction_0(int, int)':
bug.cc:8: internal compiler error: in write_builtin_type, at cp/mangle.c:1849
Please submit a full bug report, [etc.]
The code compiles if I use char or int instead of double.
--
Summary: [4.3 regression] ICE with double and attribute may_alias
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=34936