[gnu.g++.bug] Forgotten *

pell@isy.liu.se (P{r Emanuelsson) (01/20/89)

A little slip of my fingers produced the following code:
--
typedef void (vfunp)();   // This should read "typdef void (*vfunp)();"

extern void foo(vfunp);
--
And the compilation result:

1% g++ -c -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/cca01169.cpp
GNU CPP version 1.30
 /usr/local/lib/gcc-c++ /tmp/cca01169.cpp -quiet -dumpbase bug.cc -noreg
-version -o /tmp/cca01169.s
GNU C++ version 1.32.0 (68k, MIT syntax) compiled by CC.
bug.cc:3: Segmentation violation
g++: Program c++ got fatal signal 11.
2%

schmidt@siam.ics.uci.edu (Doug Schmidt) (01/21/89)

In article <8901201213.AA04226@rainier.liu.se> pell@isy.liu.se (P{r Emanuelsson) writes:
|>A little slip of my fingers produced the following code:
|>--
|>typedef void (vfunp)();   // This should read "typdef void (*vfunp)();"
|>
|>extern void foo(vfunp);
|>--
|>GNU C++ version 1.32.0 (68k, MIT syntax) compiled by CC.
|>bug.cc:3: Segmentation violation
|>g++: Program c++ got fatal signal 11.
|>2%

I posted a patch for this problem about 2 days ago.  Send me mail
if you didn't get it.

Doug Schmidt
--
schmidt@ics.uci.edu (ARPA) |   Per me si va nella citta' dolente.
office: (714) 856-4043     |   Per me si va nell'eterno dolore.
                           |   Per me si va tra la perduta gente.
                           |   Lasciate ogni speranza o voi ch'entrate.