http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45877
Summary: invalid write in gimplify_and_update_call_from_tree
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 21951
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=21951
gzipped C++ source code
I just tried to compile package freefem++-3.9-1 with the latest 4.6
snapshot 20101002 on a Fedora Linux box. The compiler said
array_long.cpp:127: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.
valgrind said
==4313== Invalid write of size 4
==4313== at 0xD03AFC: gimplify_and_update_call_from_tree (gimple.h:1193)
==4313== by 0xD05440: fold_gimple_call (gimple-fold.c:1505)
==4313== by 0xD05AFB: fold_stmt_1 (gimple-fold.c:1581)
==4313== by 0xA074EC: substitute_and_fold (tree-ssa-propagate.c:1135)
==4313== by 0x9A7DEC: do_ssa_ccp (tree-ssa-ccp.c:885)
==4313== by 0x87040E: execute_one_pass (passes.c:1569)
==4313== by 0x8706A4: execute_pass_list (passes.c:1624)
==4313== by 0x8706B6: execute_pass_list (passes.c:1625)
==4313== by 0x86F91B: do_per_function_toporder (passes.c:1160)
==4313== by 0x870B55: execute_ipa_pass_list (passes.c:1941)
==4313== by 0xB09B07: cgraph_optimize (cgraphunit.c:1699)
==4313== by 0xB09CC9: cgraph_finalize_compilation_unit (cgraphunit.c:1020)
==4313== Address 0x8 is not stack'd, malloc'd or (recently) free'd
==4313==
Source code attached. Flag -O2 required.