[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
g++ (internal) segfault upon attempted member function cal without brack
From: |
Nikolas Andersen |
Subject: |
g++ (internal) segfault upon attempted member function cal without brackets |
Date: |
Mon, 19 Jan 2004 12:36:34 +0000 |
Dear g++ developers,
The g++ compiler asks me to submit a bug report on the attached one-file
program. As far as I can see, the problem happened when I forgot brackets ()
when calling the exception class member function "out" in the class xbadval,
ie. call excep.out; instead of excep.out(); the compiler produced an
"Internal error: Segmentation fault."
Program explanation: The program calculates additional parameters for a
spectrometer experiment on basis of basic parameter files.
The program searches for a parameter identifier in a file by reading one line
at a time with fgets() and searching the line with strstr() for the parameter
id. When it is found it tries to pick up the parameter with sscanf() and
atof()/atoi() if necessary. If sscanf returns 0 parameters read, the the
xbadval exception should be thrown. Sorry about the (currently) messy program.
Best wishes & thanks for your programming efforts,
Nikolas Andersen
g++ -v gives:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
The full compiler invocation command was:
g++ -ansi -Wall -pedantic -O3 -fno-default-inline -o fast2d fast2d.cpp
fast2d.cpp
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- g++ (internal) segfault upon attempted member function cal without brackets,
Nikolas Andersen <=