#2067 g++ ICE in c++11 mode

OTHER
unread
nobody
None
Bug
none
Unknown
False
2013-09-27
2013-09-27
Thomas Braun
No

Compiling the attached crash.cpp, or crash.ii created with the -save-temps option, results in an internal compile error.

Invocation:
$ g++ -std=c++11 -O3 -fno-strict-aliasing -fwrapv -fno-aggressive-l
oop-optimizations -I /h/projekte/physical-value/libs/boost_1_54_0 -o crash.o -c
crash.cpp

Or with the preprocessed file:
$ g++ -std=c++11 -O3 -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimiza
tions -o crash.o -c crash.ii

Commenting out the destructor does not result in an ICE.

$ gcc --version
gcc.exe (GCC) 4.8.1
Copyright (C) 2013 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.

$ ld --version
GNU ld (GNU Binutils) 2.23.2
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

3 Attachments

Discussion