This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/63911] New: ICE: xpected tree that contains 'decl common' structure, have 'identifier_node' in dump_aggr_type, at cp/error.c:650 with -fdump-ipa-all -fsanitize=return
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Nov 2014 11:17:04 +0000
- Subject: [Bug sanitizer/63911] New: ICE: xpected tree that contains 'decl common' structure, have 'identifier_node' in dump_aggr_type, at cp/error.c:650 with -fdump-ipa-all -fsanitize=return
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63911
Bug ID: 63911
Summary: ICE: xpected tree that contains 'decl common'
structure, have 'identifier_node' in dump_aggr_type,
at cp/error.c:650 with -fdump-ipa-all
-fsanitize=return
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
Created attachment 34000
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34000&action=edit
reduced testcase
Compiler output:
$ gcc -fdump-ipa-all -fsanitize=return testcase.C
cc1plus: internal compiler error: tree check: expected tree that contains 'decl
common' structure, have 'identifier_node' in dump_aggr_type, at cp/error.c:650
0x10730e4 tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
/mnt/svn/gcc-trunk/gcc/tree.c:9365
0x78829a contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
/mnt/svn/gcc-trunk/gcc/tree.h:2871
0x78829a dump_aggr_type
/mnt/svn/gcc-trunk/gcc/cp/error.c:650
0x78848c dump_type_prefix
/mnt/svn/gcc-trunk/gcc/cp/error.c:819
0x78a3f6 dump_simple_decl
/mnt/svn/gcc-trunk/gcc/cp/error.c:971
0x78a894 dump_decl
/mnt/svn/gcc-trunk/gcc/cp/error.c:1072
0x7945b5 decl_as_string(tree_node*, int)
/mnt/svn/gcc-trunk/gcc/cp/error.c:2787
0x9a182a symtab_node::dump_references(_IO_FILE*)
/mnt/svn/gcc-trunk/gcc/symtab.c:701
0x9a1df1 symtab_node::dump_base(_IO_FILE*)
/mnt/svn/gcc-trunk/gcc/symtab.c:887
0x9a8cd2 cgraph_node::dump(_IO_FILE*)
/mnt/svn/gcc-trunk/gcc/cgraph.c:1956
0x9a24ea symtab_node::dump_table(_IO_FILE*)
/mnt/svn/gcc-trunk/gcc/symtab.c:914
0x9b6836 analyze_functions
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1057
0x9b6fc5 symbol_table::finalize_compilation_unit()
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:2333
0x786849 cp_write_global_declarations()
/mnt/svn/gcc-trunk/gcc/cp/decl2.c:4677
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r217624 - ICE
4_9 r216937 - ICE
4_8 r216856 - unrecognized command line option '-fsanitize=return'