public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36083]  New: g++ segfault
@ 2008-04-30  7:22 pontus dot astrom at csr dot com
  2008-04-30 10:25 ` [Bug c++/36083] " rguenth at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: pontus dot astrom at csr dot com @ 2008-04-30  7:22 UTC (permalink / raw)
  To: gcc-bugs

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 <URL: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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/36083] g++ segfault
  2008-04-30  7:22 [Bug c++/36083] New: g++ segfault pontus dot astrom at csr dot com
@ 2008-04-30 10:25 ` rguenth at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-30 10:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-04-30 10:24 -------
g++-4.1 -S t.C
t.C:9: error: scope 'a' before '~' is not a class-name

works for me since 4.1.2.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36083


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-30 10:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-30  7:22 [Bug c++/36083] New: g++ segfault pontus dot astrom at csr dot com
2008-04-30 10:25 ` [Bug c++/36083] " rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).