http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46833
Summary: ICE: SIGSEGV in expand_vector_operations (tree-vect-generic.c:340) with -fno-non-call-exceptions -ftree-vectorize Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 22668 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22668 reduced testcase Similiar to PR46805, I tried to C-ify the testcase (from .gimple dump), but it didn't crash anymore. valgrind output: ==22226== Conditional jump or move depends on uninitialised value(s) ==22226== at 0x595C61: Lex::require_line() (lex.cc:501) ==22226== by 0x597E1A: Lex::next_token() (lex.cc:544) ==22226== by 0x598532: Parse::peek_token() (parse.cc:64) ==22226== by 0x59A08A: Parse::package_clause() (parse.cc:4544) ==22226== by 0x5A6F7D: Parse::program() (parse.cc:4624) ==22226== by 0x5717AC: go_parse_input_files (go.cc:82) ==22226== by 0x91B517: toplev_main (toplev.c:579) ==22226== by 0x65EABBC: (below main) (in /lib64/libc-2.11.2.so) ==22226== Uninitialised value was created by a stack allocation ==22226== at 0x56E720: go_langhook_parse_file (go-lang.c:222) ==22226== ==22226== Invalid read of size 2 ==22226== at 0xA4AB50: expand_vector_operations (tree-vect-generic.c:340) ==22226== by 0x83171E: execute_one_pass (passes.c:1553) ==22226== by 0x8319E4: execute_pass_list (passes.c:1608) ==22226== by 0x8319F6: execute_pass_list (passes.c:1609) ==22226== by 0x8319F6: execute_pass_list (passes.c:1609) ==22226== by 0x8319F6: execute_pass_list (passes.c:1609) ==22226== by 0x971B65: tree_rest_of_compilation (tree-optimize.c:422) ==22226== by 0xB37511: cgraph_expand_function (cgraphunit.c:1508) ==22226== by 0xB39AE9: cgraph_optimize (cgraphunit.c:1567) ==22226== by 0xB3A069: cgraph_finalize_compilation_unit (cgraphunit.c:1031) ==22226== by 0x57B97B: Gogo::write_globals() (gogo-tree.cc:825) ==22226== by 0x91B555: toplev_main (toplev.c:591) ==22226== by 0x65EABBC: (below main) (in /lib64/libc-2.11.2.so) ==22226== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==22226== bigmap.go: In function 'main.seq': bigmap.go:9: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. (gdb) p compute_type $1 = (tree) 0x0 Tested revisions: r167471 - crash