Article View: gnu.g++.bug
Article #490g++-1.35-1 and gdb3.2 seem to misunderstand the following
From: Robert Kelley
Date: Tue, 10 Oct 1989 18:23
Date: Tue, 10 Oct 1989 18:23
36 lines
1777 bytes
1777 bytes
It seems that g++-1.35.1- and gdb3.2 have some difficulty with the following:
$ cat foo.c
struct Foo {
enum FooEnum { FOO_0, FOO_1 };
int a;
Foo() { a = FOO_0; }
};
int main(int argc, char** argv, char** envp)
{
struct Foo bar;
return bar.a;
}
$ g++ -v -g -o foo foo.c
g++ version 1.36.0-
/usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__GNUC__ -D__cplusplus -Dunix -Di386 -Dsequent -D__unix__ -D__i386__ -D__sequent__ f
oo.c /tmp/cc012322.cpp
GNU CPP version 1.36
/usr/local/lib/gcc-cc1plus /tmp/cc012322.cpp -quiet -dumpbase foo.c -noreg -version -G -o /tmp/cc012322.s
GNU C++ version 1.35.1- (80386, BSD syntax) compiled by GNU C version 1.35.
as /tmp/cc012322.s -o foo.o
/usr/local/lib/gcc-ld++ -o foo -C /usr/local/lib/crt0+.o foo.o /usr/local/lib/libg++.a /usr/local/lib/gcc-gnulib -lg -lc
$ gdb foo
GDB 3.2, Copyright (C) 1988 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /crg3/ui/rjk/play/foo...done.
Type "help" for a list of commands.
(gdb) b main
Reading in symbols for foo.c...Invalid symbol data: bad structure-type format at symtab pos 20.
(gdb) q
$
Technical Details
Message-ID:
<22994@sequent.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!zephyr.ens.tek.com!tektronix!sequent!rjkShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!zephyr.ens.tek.com!tektronix!sequent!rjk From: rjk@sequent.UUCP (Robert Kelley) Newsgroups: gnu.g++.bug Subject: g++-1.35-1 and gdb3.2 seem to misunderstand the following Message-ID: <22994@sequent.UUCP> Date: 10 Oct 89 18:23:21 GMT Reply-To: rjk@sequent.UUCP (Robert Kelley) Distribution: gnu Organization: Sequent Computer Systems, Inc Lines: 36