This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34913] New: [4.1/4.2/4.3 regression] ICE vector in template
- 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: 21 Jan 2008 23:29:48 -0000
- Subject: [Bug c++/34913] New: [4.1/4.2/4.3 regression] ICE vector in template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following (IMHO valid) code snippet triggers an ICE since GCC 4.0.0:
============================================
template<typename T> struct A
{
int x[sizeof(T)] __attribute((vector_size(8)));
};
============================================
bug.cc:3: internal compiler error: tree check: did not expect class 'type',
have 'type' (template_type_parm) in contains_placeholder_p, at tree.c:2297
Please submit a full bug report, [etc.]
--
Summary: [4.1/4.2/4.3 regression] ICE vector in template
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=34913