Thread View: gnu.g++.bug
1 messages
1 total messages
Started by P{r Emanuelsson
Wed, 25 Jan 1989 13:50
Bug in type declaration?
Author: P{r Emanuelsson
Date: Wed, 25 Jan 1989 13:50
Date: Wed, 25 Jan 1989 13:50
37 lines
1539 bytes
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 `)'
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads