pell@isy.liu.se (P{r Emanuelsson) (01/25/89)
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 `)'