This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
internal compiler error in find_function_data
- To: gcc-bugs at gcc dot gnu dot org
- Subject: internal compiler error in find_function_data
- From: Julian dot Bock at t-online dot de (Julian v. Bock)
- Date: Tue, 9 May 2000 12:59:47 +0200
Hi!
When you try to compile the following code on a i686-pc-linux-gnu system with
gcc 2.95.2, you get an internal compiler error.
--- bug.cc ---
class foo
{
static const int size;
int array[size];
public:
~foo() {}
};
void
func()
{
foo f;
}
----------
The size of foo can not be calculated at compile time.
# g++ bug.cc -S
bug.cc: In function `void func()':
bug.cc:14: Internal compiler error in `find_function_data', at function.c:542
verbose g++ output:
# g++ bug.cc -S -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ bug.cc /tmp/ccnAXgTe.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3
/usr/include
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../i686-pc-linux-gnu/include
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cc1plus /tmp/ccnAXgTe.ii -quiet -dumpbase bug.cc -version -o bug.s
GNU C++ version 2.95.2 19991024 (release) (i686-pc-linux-gnu) compiled by GNU C version 2.95.2 19991024 (release).
bug.cc: In function `void func()':
bug.cc:14: Internal compiler error in `find_function_data', at function.c:542
Julian