🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

g++ 1.35.1- and overloaded functions bug

#534
From: D'Souza Desmond
Date: Mon, 16 Oct 1989 18:16
29 lines
1250 bytes
g++ 1.35.1- will not compile the following overloaded functions:


// ======== SOURCE FILE : j1.cc ============


extern void pr (int);
extern void pr (char*);
extern void pr (char);

// end SOURCE FILE

// g++ messages:


optima:  g++ -v -g -o j1.o j1.cc

g++ version 1.35.1-
 /usr/local/gnu/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ j1.cc /tmp/cca04352.cpp
GNU CPP version 1.35
 /usr/local/gnu/lib/gcc-cc1plus /tmp/cca04352.cpp -quiet -dumpbase j1.cc -noreg -version -G -o /tmp/cca04352.s
GNU C++ version 1.35.1- (sparc) compiled by GNU C version 1.35.
j1.cc:3: conflicting types for `void pr (char *)'
j1.cc:4: conflicting types for `void pr (char)'

Compilation finished at Mon Oct 16 13:12:22

  -- D'Souza Desmond
Technical Details
Message-ID: <19891016181636.3.DSOUZA@CREOLE.CAD.MCC.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!tut.cis.ohio-state.edu!mcc.com!dsouza

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!tut.cis.ohio-state.edu!mcc.com!dsouza
From: dsouza@mcc.com (D'Souza Desmond)
Newsgroups: gnu.g++.bug
Subject: g++ 1.35.1- and overloaded functions bug
Message-ID: <19891016181636.3.DSOUZA@CREOLE.CAD.MCC.COM>
Date: 16 Oct 89 18:16:00 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: dsouza@mcc.com
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 29