root@ubuntu:~# g++ -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/include/c++/4.6/bits/basic_string.h:2974:0, from /usr/include/c++/4.6/string:54, from /usr/include/c++/4.6/bits/locale_classes.h:42, from /usr/include/c++/4.6/bits/ios_base.h:43, from /usr/include/c++/4.6/ios:43, from /usr/include/c++/4.6/ostream:40, from /usr/include/c++/4.6/iostream:40, from testclass.cpp:4:
/usr/include/c++/4.6/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/include/c++/4.6/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/ccXcfMvM.out file, please attach this to your bugreport.
Also affects g++ on armhf/precise:
root@ubuntu:~# g++ -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 c++/4.6/ bits/basic_ string. h:2974: 0,
from /usr/include/ c++/4.6/ string: 54,
from /usr/include/ c++/4.6/ bits/locale_ classes. h:42,
from /usr/include/ c++/4.6/ bits/ios_ base.h: 43,
from /usr/include/ c++/4.6/ ios:43,
from /usr/include/ c++/4.6/ ostream: 40,
from /usr/include/ c++/4.6/ iostream: 40,
from testclass.cpp:4: c++/4.6/ 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]': c++/4.6/ 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.
In file included from /usr/include/
/usr/include/
testclass.cpp:40:1: instantiated from here
/usr/include/
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
Preprocessed source stored into /tmp/ccXcfMvM.out file, please attach this to your bugreport.