🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jonathan D. Becher Wed, 16 Nov 1988 21:24
multiple types in one declaration
#1532
Author: Jonathan D. Becher
Date: Wed, 16 Nov 1988 21:24
42 lines
1585 bytes
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."
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads