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 bootstrap/54837] New: [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538


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

             Bug #: 54837
           Summary: [4.8 Regression] lto bootstrap error: ICE in
                    expand_debug_source_expr, at cfgexpand.c:3538
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: markus@trippelsdorf.de


With:
~/gcc/configure --disable-werror --disable-multilib --enable-languages=c,c++
--enable-checking=yes --with-build-config=lto-bootstrap

I get:
In file included from :36:0:
/home/markus/gcc/gcc/vec.h: In member function
â_ZN5vec_tIcE3popEPKcjS2_.local.27.constprop.53â:
/home/markus/gcc/gcc/vec.h:810:1: internal compiler error: in
expand_debug_source_expr, at cfgexpand.c:3538
 vec_t<T>::pop (ALONE_VEC_CHECK_DECL)
 ^
0x5755a8 expand_debug_source_expr
        /home/markus/gcc/gcc/cfgexpand.c:3537
0x575a78 expand_debug_locations
        /home/markus/gcc/gcc/cfgexpand.c:3622
0x578496 gimple_expand_cfg
        /home/markus/gcc/gcc/cfgexpand.c:4487
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.

Reduced:

markus@x4 gcc % cat test.ii
struct A
{
    int num_;
};
template < typename T > struct B
{
    T & pop (const char *);
    A prefix_;
    T vec_[];
};
char *a;
B < int >*b;
void fn1 (char *, const char *) __attribute__ ((__noreturn__));
template < typename T > T & B < T >::pop (const char *p1)
{
    prefix_.num_ ? : (fn1 (a, p1), 0);
    return vec_[-prefix_.num_];
}

int main ()
{
    b->pop (__FUNCTION__);
    b->pop (__FUNCTION__);
    b->pop (__FUNCTION__);
}

markus@x4 gcc % /var/tmp/gcc_build_dir/./prev-gcc/g++
-B/var/tmp/gcc_build_dir/./prev-gcc/ test.ii -nodefaultlibs -g -O2 -flto
In file included from :1:0:
test.ii: In member function â_ZN1BIiE3popEPKc.local.0.constprop.1â:
test.ii:14:29: internal compiler error: in expand_debug_source_expr, at
cfgexpand.c:3538
 template < typename T > T & B < T >::pop (const char *p1)
                             ^
0x5755a8 expand_debug_source_expr
        /home/markus/gcc/gcc/cfgexpand.c:3537
0x575a78 expand_debug_locations
        /home/markus/gcc/gcc/cfgexpand.c:3622
0x578496 gimple_expand_cfg
        /home/markus/gcc/gcc/cfgexpand.c:4487
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.


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