This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37268] New: ICE in template typedef with aligned attribute
- From: "svobodamo at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Aug 2008 20:39:13 -0000
- Subject: [Bug c++/37268] New: ICE in template typedef with aligned attribute
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc:
g++-4.1 (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
system:
Linux mavis 2.6.18-6-xen-amd64 #1 SMP Fri Jun 6 06:38:05 UTC 2008 x86_64
GNU/Linux
cmd line:
g++-4.1 -v -Wall -ggdb -save-temps test.cpp
output:
x@mavis:~/devel/g++4.1-crash$ g++-4.1 -v -Wall -ggdb -save-temps test.cpp
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --enable-checking=release
x86_64-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/cc1plus -E -quiet -v -D_GNU_SOURCE \
test.cpp -mtune=k8 -Wall -fworking-directory -fpch-preprocess -o
test.ii
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../x86_64-linux-gnu/include"
ignoring nonexistent directory "/usr/include/x86_64-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2/x86_64-linux-gnu
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2/backward
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/include
/usr/include
End of search list.
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/cc1plus -fpreprocessed test.ii -quiet
\
-dumpbase test.cpp -mtune=k8 -auxbase test -ggdb -Wall -version -o
test.s
GNU C++ version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
(x86_64-linux-gnu)
compiled by GNU C version 4.1.2 20061115 (prerelease) (Debian
4.1.1-21).
GGC heuristics: --param ggc-min-expand=93 --param ggc-min-heapsize=119424
Compiler executable checksum: 632603bce5ef3f84603416b58939d0f7
test.cpp: In instantiation of ?C<AA>?:
test.cpp:21: instantiated from here
test.cpp:12: internal compiler error: in is_base_type, at dwarf2out.c:8236
Please submit a full bug report,
preprocessed file:
// /usr/lib/gcc/x86_64-linux-gnu/4.1.2/cc1plus -fpreprocessed test.ii -quiet
// -dumpbase test.cpp -mtune=k8 -auxbase test -ggdb -Wall -version -o -
// -frandom-seed=0
# 1 "test.cpp"
# 1 "/home/x/devel/g++4.1-crash//"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.cpp"
struct A { };
struct AA { };
template<class T>
struct B {
typedef A T_A;
};
template<typename T>
struct C {
typedef typename B<T>::T_A __attribute__((aligned(16))) T2;
C () { }
};
int main (int , char* [])
{
C<AA> q;
return 0;
}
--
Summary: ICE in template typedef with aligned attribute
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: svobodamo at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37268