This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35380] New: ICE with attribute 'aligned' in template parameter
- From: "sander at mi dot fu-berlin dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Feb 2008 15:35:56 -0000
- Subject: [Bug c++/35380] New: ICE with attribute 'aligned' in template parameter
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following program produces an ICE on my machine
#include <tr1/array>
class Foo
{
char foo[3];
};
int main(){
std::tr1::array<Foo __attribute__((aligned(8))),2> bar;
}
Output:
cd /home/haile/sander/tmp/
g++ test.cc
test.cc: In function int main():
test.cc:9: internal compiler error: Speicherzugriffsfehler
Please submit a full bug report,
with preprocessed source if appropriate.
My compiler:
g++ (GCC) 4.2.3 (Debian 4.2.3-1)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
Summary: ICE with attribute 'aligned' in template parameter
Product: gcc
Version: 4.2.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sander at mi dot fu-berlin dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35380