Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Ken Yap
Wed, 05 Oct 1988 01:42
surefire way to make g++ core dump
Author: Ken Yap
Date: Wed, 05 Oct 1988 01:42
Date: Wed, 05 Oct 1988 01:42
42 lines
1165 bytes
1165 bytes
Problem:
Refer to a class function without the ().
Session log:
[cursa 33] g++ -g -v bug1.cc
g++ version 1.25.1
/u/cs454/lib/gcc-cpp+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix bug1.cc /tmp/cca21448.cpp
GNU CPP version 1.25.1
/u/cs454/lib/gcc-c++ /tmp/cca21448.cpp -quiet -dumpbase bug1.cc -noreg -version-G -o /tmp/cca21448.s
GNU C++ version 1.25.1 (68k, MIT syntax) compiled by GNU C version 1.25.
In function int main ():
bug1.cc:13: Segmentation violation
g++: Program c++ got fatal signal 11.
Program:
class foo
{
int i;
public:
int proc();
};
main()
{
foo x;
int i;
i = x.proc;
}
Version and environment:
g++ version 1.25.1
tm.h = tm-sun3.h
md = m68k.md
aux-output.c = output-m68k.c
sun 3-50, Sun Unix 3.4
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