🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ken Raeburn Fri, 05 Jan 1990 10:18
g++ core dump from improper use of extern "C"
#2126
Author: Ken Raeburn
Date: Fri, 05 Jan 1990 10:18
26 lines
1138 bytes
(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
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