[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#516727: gcc segfaults on simple wrong c++ code



* Rutger ter Borg <rutger@terborg.net> [2009-02-23 12:14]:
> The current c++ compiler segfaults on the following simple code mistake, where 
> a destructor doesn't have the same id as that the class.

I don't get this bug with the current 4.3 from SVN, so this has either
been fixed or has been introduced by a Debian-specific patch.  I'll
leave it to doko.


(sid)3863:tbm@em64t: ..4.3-2009-02-23-r144380/gcc] ./g++ -B. ~/src/t.cc
/home/tbm/src/t.cc:7: error: declaration of '~some' as member of 'some_class<T>'
zsh: exit 1     ./g++ -B. ~/src/t.cc
(sid)3864:tbm@em64t: ..4.3-2009-02-23-r144380/gcc] ./g++ -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /home/tbm/scratch/gcc-4.3/configure --disable-bootstrap --enable-languages=c,c++
Thread model: posix
gcc version 4.3.4 20090223 (prerelease) (GCC)

-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: