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]

[Bug lto/43788] New: ICE: verify_stmts failed: statement marked for throw, but doesn’t


Command line:
g++ -fwhopr -r -nostdlib -ftoplevel-reorder 20081204-1_1.C

----------- 20081204-1_1.C -----------
struct Foo { virtual ~Foo(); };
struct Bar:public Foo { Bar() { } };
void Func() { new Bar(); }
--------------------------------------
g++.dg/lto/20081204-1_1.C

Tested revisions:
r158486 - crash
r157877 - crash
4.5 r158486 - crash

Output:
$ /mnt/svn/gcc-trunk/binary-158486-lto-fortran/bin/g++ -fwhopr -r -nostdlib
-ftoplevel-reorder 20081204-1_1.C
In file included from :1:0:
20081204-1_1.C: In function 'Func':
20081204-1_1.C:3:6: error: statement marked for throw, but doesn't
__comp_ctor  (D.2138_3);

20081204-1_1.C:3:6: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto1: fatal error: /mnt/svn/gcc-trunk/binary-158486-lto-fortran/bin/g++
terminated with status 256
compilation terminated.
lto-wrapper: /mnt/svn/gcc-trunk/binary-158486-lto-fortran/bin/g++ returned 1
exit status
collect2: lto-wrapper returned 1 exit status

valgrind doesn't report any invalid access


-- 
           Summary: ICE: verify_stmts failed: statement marked for throw,
                    but doesn&#8217;t
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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