[Bug c++/36083] New: g++ segfault
The compiler exits with segmentation fault for this source file. There are errors in the syntax but this still should not result in a segfault. Begin code - namespace a { struct exception_base { virtual ~exception_base() throw(); }; } a::~exception_base() throw(){} End code Command line: > g++ -v -c -o bug.o bug.cc -save-temps Output: Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.1.1/configure --prefix=/opt/gcc/4.1.1 Thread model: posix gcc version 4.1.1 /opt/gcc/4.1.1/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1plus -E -quiet -v -D_GNU_SOURCE bug.cc -mtune=pentiumpro -fpch-preprocess -o bug.ii ignoring duplicate directory "/usr/local/include" ignoring nonexistent directory "/opt/gcc/4.1.1/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/include" ignoring duplicate directory "/usr/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/include /usr/X11/include /opt/gcc/4.1.1/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c++/4.1.1 /opt/gcc/4.1.1/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c++/4.1.1/i686-pc-linux-gnu /opt/gcc/4.1.1/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c++/4.1.1/backward /opt/gcc/4.1.1/include /opt/gcc/4.1.1/lib/gcc/i686-pc-linux-gnu/4.1.1/include End of search list. /opt/gcc/4.1.1/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1plus -fpreprocessed bug.ii -quiet -dumpbase bug.cc -mtune=pentiumpro -auxbase-strip bug.o -version -o bug.s GNU C++ version 4.1.1 (i686-pc-linux-gnu) compiled by GNU C version 4.0.2 20050901 (prerelease) (SUSE Linux). GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128290 Compiler executable checksum: 15f7450715807b4e1d2bded670d0f376 bug.cc:9: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. -- Summary: g++ segfault Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pontus dot astrom at csr dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36083
[Bug libstdc++/36505] New: C++ inludes do not work
de/MAIN/ext/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cstddef" 3 # 1 "/home/pa01/ws/syde/MAIN/ext/lib/gcc/i686-pc-linux-gnu/4.3.1/include/stddef.h" 1 3 4 # 152 "/home/pa01/ws/syde/MAIN/ext/lib/gcc/i686-pc-linux-gnu/4.3.1/include/stddef.h" 3 4 typedef int ptrdiff_t; # 214 "/home/pa01/ws/syde/MAIN/ext/lib/gcc/i686-pc-linux-gnu/4.3.1/include/stddef.h" 3 4 typedef unsigned int size_t; # 49 "/home/pa01/ws/syde/MAIN/ext/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cstddef" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { using ::ptrdiff_t; using ::size_t; } # 50 "/home/pa01/ws/syde/MAIN/ext/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cstdlib" 2 3 # 105 "/home/pa01/ws/syde/MAIN/ext/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cstdlib" 3 namespace std __attribute__ ((__visibility__ ("default"))) { using ::div_t; using ::ldiv_t; using ::abort; using ::abs; using ::atexit; using ::atof; using ::atoi; using ::atol; using ::bsearch; using ::calloc; using ::div; using ::exit; using ::free; using ::getenv; using ::labs; using ::ldiv; using ::malloc; using ::mblen; using ::mbstowcs; using ::mbtowc; using ::qsort; using ::rand; using ::realloc; using ::srand; using ::strtod; using ::strtol; using ::strtoul; using ::system; using ::wcstombs; using ::wctomb; inline long abs(long __i) { return labs(__i); } inline ldiv_t div(long __i, long __j) { return ldiv(__i, __j); } } # 162 "/home/pa01/ws/syde/MAIN/ext/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cstdlib" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { using ::lldiv_t; using ::_Exit; inline long long abs(long long __x) { return __x >= 0 ? __x : -__x; } using ::llabs; inline lldiv_t div(long long __n, long long __d) { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } using ::lldiv; # 195 "/home/pa01/ws/syde/MAIN/ext/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cstdlib" 3 using ::atoll; using ::strtoll; using ::strtoull; using ::strtof; using ::strtold; } namespace std __attribute__ ((__visibility__ ("default"))) { using ::__gnu_cxx::lldiv_t; using ::__gnu_cxx::_Exit; using ::__gnu_cxx::abs; using ::__gnu_cxx::llabs; using ::__gnu_cxx::div; using ::__gnu_cxx::lldiv; using ::__gnu_cxx::atoll; using ::__gnu_cxx::strtof; using ::__gnu_cxx::strtoll; using ::__gnu_cxx::strtoull; using ::__gnu_cxx::strtold; } # 9 "gcc431_test.cc" 2 int main() { return 1; } -- Summary: C++ inludes do not work Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pontus dot astrom at csr dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36505
[Bug libstdc++/36505] C++ inludes do not work
--- Comment #2 from pontus dot astrom at csr dot com 2008-06-12 09:16 --- Created an attachment (id=15752) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15752&action=view) Log of the install output. This is a log of "make install" with all references to java installs cut out too keep file within limits. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36505
[Bug libstdc++/36505] C++ inludes do not work
--- Comment #3 from pontus dot astrom at csr dot com 2008-06-12 09:29 --- Subject: RE: C++ inludes do not work Yes I am completely sure it is there. I just double-checked. In addition, my gcc-4.2.2 install, compiled and installed with identical options, does not have the problem. Best regards, Pontus -Original Message- From: pinskia at gcc dot gnu dot org [mailto:[EMAIL PROTECTED] Sent: den 12 juni 2008 11:12 To: Pontus Åström Subject: [Bug libstdc++/36505] C++ inludes do not work --- Comment #1 from pinskia at gcc dot gnu dot org 2008-06-12 09:11 --- >error: stdlib.h: No such file or directory It should have been in: > /usr/include Which is included in the include path. Are you sure you have the includes installed? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36505