http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51739
Bug #: 51739
Summary: g++ cpp compiler crash with -O3
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 26228
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26228
preprocessed source file to reproduce crash
g++ crashes when compiling the attached source file. This file was generated
with -E. The compiler also crashes when usign -save-temps on the original
source file. I've not encountered any other files that cause this problem. The
problem is consistantly reproducible (on my system).
I'm not responsible for nor do I condone this rat's nest code, but it does work
with older g++ versions (ex, 4.1, 4.4) and without -O3. Also, the options -Wall
-Wextra etc did not turn up any obvious problems.
The system is a newly installed Xubuntu 11.10 running in a fairly vanilla
VirtualBox setup (single processor, 64 bit on a 64 bit host machine).
Additional information is below. Apologies, I have not tried with the latest
version of g++.
tgraham@kepler:~/tmp$ g++ --version
g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
tgraham@kepler:~/tmp$ uname -a
Linux kepler 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011
x86_64 x86_64 x86_64 GNU/Linux
tgraham@kepler:~/tmp$ apt-cache show g++
Package: g++
Priority: optional
Section: devel
Installed-Size: 40
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian GCC Maintainers <[email protected]>
Architecture: amd64
Source: gcc-defaults (1.107ubuntu5)
Version: 4:4.6.1-2ubuntu5
Provides: c++-compiler
Depends: cpp (>= 4:4.6.1-2ubuntu5), gcc (>= 4:4.6.1-2ubuntu5), g++-4.6 (>=
4.6.1-1), gcc-4.6 (>= 4.6.1-1)
Suggests: g++-multilib
Filename: pool/main/g/gcc-defaults/g++_4.6.1-2ubuntu5_amd64.deb
Size: 1444
MD5sum: cc859060d224541b4233c017a38f0d26
SHA1: dd510ca73ddb2d23c30daa402b0a580ceef82f1e
SHA256: d5b29e533c91cf2bbdc91671f1c9530a8b3b4d8e5eaf9b9b1716f22e59bbceb6
Description-en: GNU C++ compiler
This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
.
This is a dependency package providing the default GNU C++ compiler.
Description-md5: 4d44b18774ae5123b7c3f70d940cf655
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Build-Essential: yes
Origin: Ubuntu
Supported: 18m