[gnu.g++.bug] multiple types in one declaration

becher@armada.UUCP (Jonathan D. Becher) (11/17/88)

Am I missing something or is this an obvious bug in g++ version 1.25.0
running under Ultrix? It appears as if g++ (but not gcc, cc, or at&t c++) 
allows multiple tpyes in one declaration but ignores all type info until
the last one.

File with sample errors:

main()
{
    struct foo {
        float f;
    } int bar;				// bar turns out to be int

    int int int int i = bar;		// i turns out to be int
}

Compile specifics:

g++ -v t.cc 
g++ version 1.25.0
 /usr/local/lib/gcc-cpp+ -v -undef -D__GNU__ -D__GNUG__ -Dvax -Dunix t.cc /tmp/c
c020741.cpp
GNU CPP version 1.25.0
 /usr/local/lib/gcc-c++ /tmp/cc020741.cpp -quiet -dumpbase t.cc -noreg -version 
-o /tmp/cc020741.s
GNU C++ version 1.25.0 (vax) compiled by GNU C version 1.25.
 as /tmp/cc020741.s -o t.o
 /usr/local/lib/gcc-ld++ -C /usr/local/lib/crt0+.o t.o -lg++ /usr/local/lib/gcc-
gnulib+ -lc


Other Notes:

To Michael (or whomever):
  I believe the problem arises due to the recursion in 'decls' since it
appears that 'decl' can parse to null. I  may be mistaken though since I
haven't had a chance to look at it closely.


Jon Becher
argosy!becher@decwrl.dec.com        -OR-        becher@cs.duke.edu
"The irony of life is that only sane people think they're crazy."