This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: (gcc 2.95 & 3.2) Internal compiler error (very short code)


It fails also in gcc 3.3 20021010 (experimental) in gcc/cp/parse.y:3119:

(gdb) run -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 temp.cc -D__GNUG__=3 -quiet -dumpbase temp.cc -auxbase temp -version
Starting program: /export/gates/pinskia/openbsd/lib/gcc-lib/i686-unknown-openbsd3.1/3.3/ cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 temp.cc -D__GNUG__=3 -quiet -dumpbase temp.cc -auxbase temp -version
GNU C++ version 3.3 20021010 (experimental) (i686-unknown-openbsd3.1)
compiled by GNU C version 3.3 20021010 (experimental).
ignoring nonexistent directory "/home/gates/pinskia/openbsd/i686-unknown-openbsd3.1/include"
#include "..." search starts here:
#include <...> search starts here:
/home/gates/pinskia/openbsd/include/c++/3.3
/home/gates/pinskia/openbsd/include/c++/3.3/i686-unknown-openbsd3.1
/home/gates/pinskia/openbsd/include/c++/3.3/backward
/usr/local/include
/home/gates/pinskia/openbsd/include
/home/gates/pinskia/openbsd/lib/gcc-lib/i686-unknown-openbsd3.1/3.3/ include
/usr/include
End of search list.

Program received signal SIGSEGV, Segmentation fault.
0x000c283a in yyparse () at parse.y:3119
3119 parse.y: No such file or directory.
in parse.y
(gdb) bt
#0 0x000c283a in yyparse () at parse.y:3119
#1 0x00000000 in ?? ()
(gdb) quit


I do not know how to fix it though.

Thanks,
Andrew Pinski

On Thursday, Oct 10, 2002, at 12:26 US/Pacific, Lukasz Pankowski wrote:

I did not thought I find when it happens, so I submitted full code
(sorry), but few lines are enough (also attachment as file).

Circumstances when the error appears (a beat bizarre):
* class definition has now ending semicolon
* constructor is defined twice: inside and outside of the class
* the inside constructor has a function declaration in it
(which I wanted to be method call -- a copy-and-paste method:))


class A
{
A() {
void f();
}
}

A::A()
{
}


Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.1/specs
gcc-3.2: unrecognized option `-save-temp'
Configured with: /mnt/data/gcc-3.1/gcc-3.2-3.2.1ds2/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.1 20020924 (Debian prerelease)
/usr/lib/gcc-lib/i386-linux/3.2.1/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=1 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ foo.cpp -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase foo.cpp -version -o /tmp/ccKuW7Ku.s
GNU CPP version 3.2.1 20020924 (Debian prerelease) (cpplib) (i386 Linux/ELF)
GNU C++ version 3.2.1 20020924 (Debian prerelease) (i386-linux)
compiled by GNU C version 3.2.1 20020924 (Debian prerelease).
ignoring nonexistent directory "/usr/i386-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/3.2
/usr/include/c++/3.2/i386-linux
/usr/include/c++/3.2/backward
/usr/local/include
/usr/lib/gcc-lib/i386-linux/3.2.1/include
/usr/include
End of search list.
foo.cpp:8: internal error: Naruszenie ochrony pamięci
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc-2.95: unrecognized option `-save-temp'
gcc version 2.95.4 20011002 (Debian prerelease)
/usr/lib/gcc-lib/i386-linux/2.95.4/cpp0 -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__ foo.cpp /tmp/ccHXh7aa.ii
GNU CPP version 2.95.4 20011002 (Debian prerelease) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3
/usr/local/include
/usr/lib/gcc-lib/i386-linux/2.95.4/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../i386-linux/include
End of omitted list.
/usr/lib/gcc-lib/i386-linux/2.95.4/cc1plus /tmp/ccHXh7aa.ii -quiet -dumpbase foo.cc -version -o /tmp/ccY0lEw9.s
GNU C++ version 2.95.4 20011002 (Debian prerelease) (i386-linux) compiled by GNU C version 2.95.4 20011002 (Debian prerelease).
foo.cpp:8: Internal compiler error.
foo.cpp:8: Please submit a full bug report.
foo.cpp:8: Internal compiler error:
foo.cpp:8: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


--

=*= Lukasz Pankowski =*=

t o t f s h i m o f p h t s s w
h n h i a o s o f o r o o a o i
e e a r i p t o o p y m s
t s d e h l b e e e
t e s a d t
r b h
l i
y n
g


<foo.cpp>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]