https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64373
Bug ID: 64373 Summary: [5 regression] ICE with lto related to variably modified type Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: uecker at eecs dot berkeley.edu Created attachment 34309 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34309&action=edit minimized test case xgcc (GCC) 5.0.0 20141221 (experimental) test.c: In function ‘a’: test.c:8:8: warning: passing argument 2 of ‘b’ from incompatible pointer type [-Wincompatible-pointer-types] b(10, p + i); ^ test.c:2:13: note: expected ‘float (*)[(sizetype)(L)]’ but argument is of type ‘float *’ extern void b(int L, float (*data)[L]); ^ test.c:9:1: internal compiler error: Speicherzugriffsfehler } ^ 0xafb59f crash_signal ../../gcc_git/gcc/toplev.c:358 0x9e3327 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) ../../gcc_git/gcc/tree.h:2892 0x9e3327 tree_is_indexable ../../gcc_git/gcc/lto-streamer-out.c:153 0x9ece57 DFS::DFS_write_tree(output_block*, DFS::sccs*, tree_node*, bool, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:1332 0x9ef8c8 DFS::DFS_write_tree_body(output_block*, tree_node*, DFS::sccs*, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:654 0x9ed1a0 DFS::DFS_write_tree(output_block*, DFS::sccs*, tree_node*, bool, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:1357 0x9ef8c8 DFS::DFS_write_tree_body(output_block*, tree_node*, DFS::sccs*, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:654 0x9ed1a0 DFS::DFS_write_tree(output_block*, DFS::sccs*, tree_node*, bool, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:1357 0x9ef8c8 DFS::DFS_write_tree_body(output_block*, tree_node*, DFS::sccs*, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:654 0x9ed1a0 DFS::DFS_write_tree(output_block*, DFS::sccs*, tree_node*, bool, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:1357 0x9ef8c8 DFS::DFS_write_tree_body(output_block*, tree_node*, DFS::sccs*, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:654 0x9ed1a0 DFS::DFS_write_tree(output_block*, DFS::sccs*, tree_node*, bool, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:1357 0x9ef016 DFS::DFS_write_tree_body(output_block*, tree_node*, DFS::sccs*, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:603 0x9ed1a0 DFS::DFS_write_tree(output_block*, DFS::sccs*, tree_node*, bool, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:1357 0x9eea95 DFS::DFS_write_tree_body(output_block*, tree_node*, DFS::sccs*, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:522 0x9ed1a0 DFS::DFS_write_tree(output_block*, DFS::sccs*, tree_node*, bool, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:1357 0x9eea95 DFS::DFS_write_tree_body(output_block*, tree_node*, DFS::sccs*, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:522 0x9ed1a0 DFS::DFS_write_tree(output_block*, DFS::sccs*, tree_node*, bool, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:1357 0x9edc97 DFS::DFS(output_block*, tree_node*, bool, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:495 0x9ee6cd lto_output_tree(output_block*, tree_node*, bool, bool) ../../gcc_git/gcc/lto-streamer-out.c:1552