Package: g++
Version: 2.95

official g++ Bug report here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11681

The issue was marked as resolved because soon they are
dropping support for gcc 2.95.x. in favor of 3.x

------------------------

basically, by compiling this snippet with 'g++ -ggdb
t.cpp':

    // SNIPPET - compile with -ggdb
    class c1 : public c2 () {};
    c1::c1() {}
    // END SNIPPET

gcc -v on gcc's that crash on this:
:gcc version 2.95.4 20011002 (Debian prerelease)
:GNU C++ version 2.95.2 20000220 (Debian GNU/Linux)
(i386-linux) compiled by GNU
C version 2.95.2 20000220 (Debian GNU/Linux)
:gcc version 2.95.2 20000220 (Debian GNU/Linux)

however, this bug is fixed in:
:gcc version 2.96 20000731 (Red Hat Linux 7.3
2.96-110)
:gcc version 3.0.4

error message:

Naturally, the regular syntax error is the () after
c2, but g++ does this:

NOTE! without -ggdb this code just is a syntax error
and not a crash.

t.cpp:1: parse error before `('
t.cpp:2: invalid use of undefined type `class c1'
t.cpp:1: forward declaration of `class c1'
t.cpp: In method `c1::c1()':
t.cpp:2: Internal compiler error:
t.cpp:2: Internal compiler error in `scope_die_for',
at dwarf2out.c:7804
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html>
for instructions.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


Reply via email to