On Quantal, this happens on arm-linux-gnueabi-g++-4.6 but not 4.7
dg@major:~/Downloads$ arm-linux-gnueabi-g++-4.7 -g --static -W -Wall -Wextra -std=c++0x -pedantic -pedantic-errors -ofast -ftree-vectorize -fno-exceptions -fno-rtti -ffast-math -flto -funsafe-loop-optimizations -Wunsafe-loop-optimizations -fmodulo-sched -fsched-spec-load -ftracer testclass.cpp -o bugreport
dg@major:~/Downloads$ arm-linux-gnueabi-g++-4.6 -g --static -W -Wall -Wextra -std=c++0x -pedantic -pedantic-errors -ofast -ftree-vectorize -fno-exceptions -fno-rtti -ffast-math -flto -funsafe-loop-optimizations -Wunsafe-loop-optimizations -fmodulo-sched -fsched-spec-load -ftracer testclass.cpp -o bugreport
In file included from /usr/arm-linux-gnueabi/include/c++/4.6.3/bits/basic_string.h:2974:0, from /usr/arm-linux-gnueabi/include/c++/4.6.3/string:54, from /usr/arm-linux-gnueabi/include/c++/4.6.3/bits/locale_classes.h:42, from /usr/arm-linux-gnueabi/include/c++/4.6.3/bits/ios_base.h:43, from /usr/arm-linux-gnueabi/include/c++/4.6.3/ios:43, from /usr/arm-linux-gnueabi/include/c++/4.6.3/ostream:40, from /usr/arm-linux-gnueabi/include/c++/4.6.3/iostream:40, from testclass.cpp:4:
/usr/arm-linux-gnueabi/include/c++/4.6.3/bits/functional_hash.h: In instantiation of ‘std::size_t std::hash<_Tp>::operator()(_Tp) const [with _Tp = long double, std::size_t = unsigned int]’:
testclass.cpp:40:1: instantiated from here
/usr/arm-linux-gnueabi/include/c++/4.6.3/bits/functional_hash.h:184:5: internal compiler error: in write_builtin_type, at cp/mangle.c:2168
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cctWjhp9.out file, please attach this to your bugreport.
On Quantal, this happens on arm-linux- gnueabi- g++-4.6 but not 4.7
dg@major: ~/Downloads$ arm-linux- gnueabi- g++-4.7 -g --static -W -Wall -Wextra -std=c++0x -pedantic -pedantic-errors -ofast -ftree-vectorize -fno-exceptions -fno-rtti -ffast-math -flto -funsafe- loop-optimizati ons -Wunsafe- loop-optimizati ons -fmodulo-sched -fsched-spec-load -ftracer testclass.cpp -o bugreport ~/Downloads$ arm-linux- gnueabi- g++-4.6 -g --static -W -Wall -Wextra -std=c++0x -pedantic -pedantic-errors -ofast -ftree-vectorize -fno-exceptions -fno-rtti -ffast-math -flto -funsafe- loop-optimizati ons -Wunsafe- loop-optimizati ons -fmodulo-sched -fsched-spec-load -ftracer testclass.cpp -o bugreport linux-gnueabi/ include/ c++/4.6. 3/bits/ basic_string. h:2974: 0,
from /usr/arm- linux-gnueabi/ include/ c++/4.6. 3/string: 54,
from /usr/arm- linux-gnueabi/ include/ c++/4.6. 3/bits/ locale_ classes. h:42,
from /usr/arm- linux-gnueabi/ include/ c++/4.6. 3/bits/ ios_base. h:43,
from /usr/arm- linux-gnueabi/ include/ c++/4.6. 3/ios:43,
from /usr/arm- linux-gnueabi/ include/ c++/4.6. 3/ostream: 40,
from /usr/arm- linux-gnueabi/ include/ c++/4.6. 3/iostream: 40,
from testclass.cpp:4: linux-gnueabi/ include/ c++/4.6. 3/bits/ functional_ hash.h: In instantiation of ‘std::size_t std::hash< _Tp>::operator( )(_Tp) const [with _Tp = long double, std::size_t = unsigned int]’: linux-gnueabi/ include/ c++/4.6. 3/bits/ functional_ hash.h: 184:5: internal compiler error: in write_builtin_type, at cp/mangle.c:2168 //usr/share/ doc/gcc- 4.6/README. Bugs> for instructions.
dg@major:
In file included from /usr/arm-
/usr/arm-
testclass.cpp:40:1: instantiated from here
/usr/arm-
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
Preprocessed source stored into /tmp/cctWjhp9.out file, please attach this to your bugreport.