🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

template bug in 2.3.3

#1205
From: Matt Wette
Date: Sun, 03 Jan 1993 18:54
26 lines
1458 bytes
There seems to be a bug in g++ when one hits multiple undefined templates ...

 Script started on Fri Jan  1 23:12:20 1993
 bash$ head -1 /etc/motd
 SunOS Release 4.1.3 (CSI.4) #1: Thu Dec 31 12:52:58 PST 1992
 bash$ cat zz.cc
 class A;
 class B;
 
 class T<A>;
 class T<B>;
 bash$ g++ -c zz.cc
 Reading specs from /usr/local/lib/gcc-lib/sun4-sunos4/2.3.3/specs
 gcc version 2.3.3
  /usr/local/lib/gcc-lib/sun4-sunos4/2.3.3/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 zz.cc /usr/tmp/cca14349.i
 GNU CPP version 2.3.3 (sparc)
  /usr/local/lib/gcc-lib/sun4-sunos4/2.3.3/cc1plus /usr/tmp/cca14349.i -quiet -dumpbase zz.cc -version -o /usr/tmp/cca14349.s
 GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.3.2.
 zz.cc:4: parse error before `<'
 zz.cc:5: Non-template type 'T' used as a template
 zz.cc:5: Internal compiler error.
 zz.cc:5: Please report this to `bug-g++@prep.ai.mit.edu'.
 bash$ exit
 exit

 script done on Fri Jan  1 23:12:54 1993
Technical Details
Message-ID: <9301031854.AA10234@csi.jpl.nasa.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!csi.jpl.nasa.gov!mwette

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!csi.jpl.nasa.gov!mwette
From: mwette@csi.jpl.nasa.gov (Matt Wette)
Subject: template bug in 2.3.3
Message-ID: <9301031854.AA10234@csi.jpl.nasa.gov>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sun, 3 Jan 1993 18:54:18 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 28