🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Incorrect error message in g++ 1.35.0

#2038
From: William G. Bunton
Date: Fri, 26 May 1989 22:19
26 lines
975 bytes
This is on 386/ix 2.0.1. G++ is configured for i386gas (using
COFF-ENCAPSULATION).

ksh1 [616]$ cat t.cc
struct foo {
  int a;
};
  
main()
{
  foo bar;

  bar.foobar();   <=== no member function `foobar' in type `foo'
}
ksh1 [617]$ g++ -c t.cc
In function int main ():
t.cc:9: no member function `foo' defined within type `foobar'
ksh1 [618]$ 

The function name and type name are reversed in the resulting error
message. 

Bill
--
William G. Bunton            wgb@tntdev.tnt.com     {uunet,natinst}!tntdev!wgb
Tools & Techniques, Inc. Austin, TX        
Technical Details
Message-ID: <8905262219.AA08029@tntdev.tnt.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!tntdev.tnt.com!wgb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!tntdev.tnt.com!wgb
From: wgb@tntdev.tnt.com (William G. Bunton)
Newsgroups: gnu.g++.bug
Subject: Incorrect error message in g++ 1.35.0
Message-ID: <8905262219.AA08029@tntdev.tnt.COM>
Date: 26 May 89 22:19:34 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 26