🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #32

g++ Ver 2.3.1 bug.

#32
From: Matumoto Ryuji &
Date: Tue, 03 Nov 1992 13:19
60 lines
2963 bytes
This bug reports are for G++ version 2.3.1.
We're using Sparc stations running SunOs4.1.1.

Error massage.

G++ 2.3.1 compiled.
-------------
kamo<Matumoto>[1] g++.2.3.1 test.c -v
Reading specs from /edu/lib/gcc-lib/sun4-sunos4.1/2.3.1/gcc-lib/sun4-sunos4.1/2.3.1/specs
gcc version 2.3.1
 /edu/lib/gcc-lib/sun4-sunos4.1/2.3.1/gcc-lib/sun4-sunos4.1/2.3.1/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix test.c /usr/tmp/cca05231.i
GNU CPP version 2.3.1 (sparc)
 /edu/lib/gcc-lib/sun4-sunos4.1/2.3.1/gcc-lib/sun4-sunos4.1/2.3.1/cc1plus /usr/tmp/cca05231.i -quiet -dumpbase test.cc -version -o /usr/tmp/cca05231.s
GNU C++ version 2.3.1 (sparc) compiled by GNU C version 2.3.1.
test.c: In method `A::A (void *)':
test.c:13: `foo' undeclared (first use this function)
test.c:13: (Each undeclared identifier is reported only once
test.c:13: for each function it appears in.)
test.c:13: `a' undeclared (first use this function)
test.c:14: parse error before `)'
kamo<Matumoto>[2] 
------

G++ 1.42.0 compiled.  -> OK.
------
mozu<Matumoto>[3] g++.1.42.0 test.c -v
g++ version 1.42.0 (based on GCC 1.42)
 /edu/lib/gcc-lib/sun4-sunos4.1/1.42.0/gcc-cpp -+ -v -undef -D__GNUC__ -D__GNUG__ -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ test.c /usr/tmp/cca13833.cpp
GNU CPP version 1.42
 /edu/lib/gcc-lib/sun4-sunos4.1/1.42.0/gcc-cc1plus /usr/tmp/cca13833.cpp -quiet -dumpbase test.c -version -o /usr/tmp/cca13833.s
GNU C++ version 1.42.0 (based on GCC 1.42) (sparc) compiled by GNU C version 1.42.
default target switches: -mfpu -mepilogue
 /edu/lib/gcc-lib/sun4-sunos4.1/1.42.0/gcc-as -o test.o /usr/tmp/cca13833.s
 /edu/lib/gcc-lib/sun4-sunos4.1/1.42.0/gcc-ld -e start -dc -dp /lib/crt0.o /edu/lib/gcc-lib/sun4-sunos4.1/1.42.0/gcc-ccrt0.o test.o -L/edu/lib/gcc-lib/sun4-sunos4.1/1.42.0/ -lg++ /edu/lib/gcc-lib/sun4-sunos4.1/1.42.0/gcc-gnulib -lc
/lib/crt0.o: Undefined symbol _main referenced from text segment
mozu<Matumoto>[4] 
------

text.
------
#include <stdio.h>

class A
{
  typedef struct _foo
    {
      int aa;
    } foo;

public:
  A(void *b)
    {
      foo *a;
      a=(foo*)b;
    }
};
---------------------------
Ryuji Matsumoto
Kyushu Institute of Technology.(Japan)
e-mail:matumoto@pluto.ai.kyutech.ac.jp
Technical Details
Message-ID: <RYUJI.92Nov3221915@donald30.donald.ai.kyutech.ac.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.encore.com!csar!foxtail!sdd.hp.com!cs.utexas.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!donald.ai.kyutech.ac.jp!ryuji

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!news.encore.com!csar!foxtail!sdd.hp.com!cs.utexas.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!donald.ai.kyutech.ac.jp!ryuji
From: ryuji@donald.ai.kyutech.ac.jp (Matumoto Ryuji &)
Subject: g++ Ver 2.3.1 bug.
Message-ID: <RYUJI.92Nov3221915@donald30.donald.ai.kyutech.ac.jp>
Sender: gnulists@ai.mit.edu
Reply-To: matumoto@pluto.ai.kyutech.ac.jp
Organization: KIT Iizuka, AI Dept, JAPAN.
Distribution: gnu
Date: Tue, 3 Nov 1992 13:19:14 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 61