Path: 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 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