🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug in type declaration?

#1650
From: P{r Emanuelsson
Date: Wed, 25 Jan 1989 13:50
37 lines
1539 bytes
I'm working with g++ 1.32, running on a SUN3/75, SunOS4.0.1.
Compiling the following line gives an error:

extern int win(int (*)());

If I make the line

extern int win(int, int (*)());

It compiles OK. Similarly, if I write:

typedef int (*foo)();
extern int win(foo);

everyting compiles.

--
Let me take the opportunity to ask if anyone has got g++ 1.32 running on
the Sun386i?? I have run into a lot of troubles...

    /Pell
--
"Don't think; let the machine do it for you!"
                                   -- E. C. Berkeley
Dept. of Electrical Engineering	         ====>>>    pell@isy.liu.se
University of Linkoping, Sweden	     ...!uunet!enea!isy.liu.se!pell
----
Here is the output from g++ in the first case above:

1% g++ -v bug.cc
g++ version 1.32.0
 /usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix bug.cc /tmp/cca04559.cpp
GNU CPP version 1.30
 /usr/local/lib/gcc-c++ /tmp/cca04559.cpp -quiet -dumpbase bug.cc -noreg -version -o /tmp/cca04559.s
GNU C++ version 1.32.0 (68k, MIT syntax) compiled by CC.
bug.cc:1: parse error before `)'
bug.cc:1: parse error before `)'
Technical Details
Message-ID: <8901251350.AA27970@rainier.liu.se>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!isy.liu.se!pell

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!isy.liu.se!pell
From: pell@isy.liu.se (P{r Emanuelsson)
Newsgroups: gnu.g++.bug
Subject: Bug in type declaration?
Message-ID: <8901251350.AA27970@rainier.liu.se>
Date: 25 Jan 89 13:50:17 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 37