public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/45949] New: ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code
@ 2010-10-08 22:58 zsojka at seznam dot cz
  2010-10-09 12:24 ` [Bug lto/45949] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-08 22:58 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538)
                    with -flto/-fwhopr on invalid code
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 22004
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22004
reduced testcase (from g++.dg/template/cond2.C)

Command line:
$ gcc -O2 -flto pr45949.C
or
$ gcc -O2 -fwhopr pr45949.C

Related valgrind output:
pr45949.C: In instantiation of 'int test(c<(0 ?  : X)>*) [with int X = 2]':
pr45949.C:2:24:   instantiated from here
pr45949.C:2:24: error: omitted middle operand to '?:' operand cannot be mangled
==22144== Invalid read of size 8
==22144==    at 0xA1125D: gimple_default_def (tree-dfa.c:538)
==22144==    by 0xC132FB: ipa_analyze_node (ipa-prop.c:1282)
==22144==    by 0xC05E2A: ipcp_generate_summary (ipa-cp.c:1538)
==22144==    by 0x8FC6B5: execute_ipa_summary_passes (passes.c:1423)
==22144==    by 0xC048C7: cgraph_optimize (cgraphunit.c:1718)
==22144==    by 0xC04AA9: cgraph_finalize_compilation_unit (cgraphunit.c:1020)
==22144==    by 0x58736C: cp_write_global_declarations (decl2.c:3928)
==22144==    by 0x9E74E3: toplev_main (toplev.c:946)
==22144==    by 0x657BBBC: (below main) (in /lib64/libc-2.11.2.so)
==22144==  Address 0x40 is not stack'd, malloc'd or (recently) free'd
==22144== 
pr45949.C:7:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

end of thread, other threads:[~2010-11-30 12:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-08 22:58 [Bug lto/45949] New: ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code zsojka at seznam dot cz
2010-10-09 12:24 ` [Bug lto/45949] " rguenth at gcc dot gnu.org
2010-11-29 16:32 ` rguenth at gcc dot gnu.org
2010-11-30 10:05 ` rguenth at gcc dot gnu.org
2010-11-30 12:22 ` 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).