This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34936] New: [4.3 regression] ICE with double and attribute may_alias
- 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: 23 Jan 2008 07:42:49 -0000
- Subject: [Bug c++/34936] New: [4.3 regression] ICE with double and attribute may_alias
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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