Package: g++-4.2
Version: 4.2.3-4
Severity: normal
g++-4.2 miscompiles kikithebot (not yet uploaded) at -O2 on amd64. In
the attached testcase the KikiEvent destructor gets stuck in an
infinite loop if the actions vector is non-empty. I've reduced it as
far as I could.
To reproduce:
g++ -O2 KikiEvent.cpp KikiEventMain.cpp -o kiki
./kiki
Files included in the tarball:
KikiEvent.cpp: the code that gets miscompiled
KikiEvent.i: preprocessed version
KikiEventMain.cpp: a main function to test
(the bug doesn't manifest itself if I just add this to KikiEvent.cpp)
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24-1-amd64 (SMP w/1 CPU core)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages g++-4.2 depends on:
ii gcc-4.2 4.2.3-4 The GNU C compiler
ii gcc-4.2-base 4.2.3-4 The GNU Compiler Collection (base
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libstdc++6-4.2-dev 4.2.3-4 The GNU Standard C++ Library v3 (d
g++-4.2 recommends no packages.
-- no debconf information
Attachment:
KikiEvent.tar.gz
Description: GNU Zip compressed data