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

            Bug ID: 59441
           Summary: ICE in bitmap_element_allocate
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org

On

template < typename T > struct A
{
  T foo ();
};
template < typename T > struct C: virtual public A < T >
{
  C & operator<< (C & (C &));
};
template < typename T >
C < T > &endl (C < int > &c)
{
  c.foo ();
  return c;
}
C < int > cout;
void
fn ()
{
  cout << endl;
}

we ICE:

$ ./cc1plus -quiet -fvtable-verify=std w.C -flto -O
w.C: In function ‘_GLOBAL__sub_I.00099_cout’:
w.C:20:1: internal compiler error: Segmentation fault
 }
 ^
0xb6393f crash_signal
    /home/marek/src/gcc/gcc/toplev.c:336
0x7d95c4 bitmap_element_allocate
    /home/marek/src/gcc/gcc/bitmap.c:224
0x7d95c4 bitmap_set_bit(bitmap_head_def*, int)
    /home/marek/src/gcc/gcc/bitmap.c:669
0xd118f3 verify_ssa(bool)
    /home/marek/src/gcc/gcc/tree-ssa.c:1075
0xab73ce execute_function_todo
    /home/marek/src/gcc/gcc/passes.c:1842
0xab7d93 execute_todo
    /home/marek/src/gcc/gcc/passes.c:1875
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Target: x86_64-unknown-linux-gnu
Configured with: --disable-bootstrap --enable-languages=c,c++,lto
--enable-checking=yes
gcc version 4.9.0 20131209 (experimental) (GCC)

Reply via email to