Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ATHENA.MIT.EDU!Raeburn From: Raeburn@ATHENA.MIT.EDU (Ken Raeburn) Newsgroups: gnu.g++.bug Subject: g++ core dump from improper use of extern "C" Message-ID: <9001051018.AA05287@multics.MIT.EDU> Date: 5 Jan 90 10:18:18 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 26 (version 1.36.1, vax) Source file: extern "C" { extern void foo (struct frob *); }; struct frob { int a, b; }; Results: % g++ -O -v -g -c bar.c gcc version 1.36.1 (based on GCC 1.36) /mit/gnu/vaxlib/gcc-cpp -+ -v -undef -D__GNUC__ -D__GNUG__ -D__cplusplus -Dvax -Dunix -D__vax__ -D__unix__ -D__OPTIMIZE__ bar.c /usr/tmp/cc005284.cpp GNU CPP version 1.36 /mit/gnu/vaxlib/gcc-cc1plus /usr/tmp/cc005284.cpp -fcombine-regs -fstrength-reduce -quiet -dumpbase bar.c -g -O -version -o /usr/tmp/cc005284.s GNU C++ version 1.36.1 (based on GCC 1.36) (vax) compiled by GNU C version 1.36. default target switches: bar.c:7: Segmentation violation g++: Program cc1plus got fatal signal 11. -- Ken