public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/54837] New: [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538
@ 2012-10-06 17:26 markus at trippelsdorf dot de
  2012-10-08 10:51 ` [Bug bootstrap/54837] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: markus at trippelsdorf dot de @ 2012-10-06 17:26 UTC (permalink / raw)
  To: gcc-bugs


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.


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

end of thread, other threads:[~2012-10-09 15:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-06 17:26 [Bug bootstrap/54837] New: [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538 markus at trippelsdorf dot de
2012-10-08 10:51 ` [Bug bootstrap/54837] " rguenth at gcc dot gnu.org
2012-10-08 13:57 ` hjl.tools at gmail dot com
2012-10-09 14:15 ` rguenth at gcc dot gnu.org
2012-10-09 14:40 ` rguenth at gcc dot gnu.org
2012-10-09 15:15 ` rguenth at gcc dot gnu.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).