Article View: gnu.g++.bug
Article #275g++ 1.34.2 bug
From: Ken Yap
Date: Mon, 10 Jul 1989 02:55
Date: Mon, 10 Jul 1989 02:55
41 lines
1389 bytes
1389 bytes
[Sorry if this is a fixed problem, our local maintainer is rather busy.]
Problem:
Accidental use of a field name causes g++ to forget structure member later.
Program:
class foo
{
public:
int rhslen;
};
xxx()
{
foo *f;
zzz(rhslen);
}
yyy()
{
foo *f;
zzz(f->rhslen);
}
Diagnostics:
g++ version 1.34.2
/usr/su/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 bug4.cc /tmp/cca00401.cpp
GNU CPP version 1.35
/usr/su/lib/gcc-c++ /tmp/cca00401.cpp -quiet -dumpbase bug4.cc -noreg -version -o /tmp/cca00401.s
GNU C++ version 1.34.2 (68k, MIT syntax) compiled by GNU C version 1.34.
In function int xxx ():
bug4.cc:11: `rhslen' was not declared (first use this function)
bug4.cc:11: (Each undeclared identifier is reported only once
bug4.cc:11: for each function it appears in.)
In function int yyy ():
bug4.cc:18: structure has no member named `rhslen'
Technical Details
Message-ID:
<8907100255.AA00414@cursa.cs.rochester.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!CS.ROCHESTER.EDU!kenShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!CS.ROCHESTER.EDU!ken From: ken@CS.ROCHESTER.EDU (Ken Yap) Newsgroups: gnu.g++.bug Subject: g++ 1.34.2 bug Message-ID: <8907100255.AA00414@cursa.cs.rochester.edu> Date: 10 Jul 89 02:55:37 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: ken@cs.rochester.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 41