[Bug c++/71158] New: ICE in tree_to_uhwi with -fsanitize=address

zeccav at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue May 17 07:07:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71158

            Bug ID: 71158
           Summary: ICE in tree_to_uhwi with -fsanitize=address
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

Compiling the following with
g++ -fsanitize=address 
int main()
{
int offset=1;
char buf[offset]="";
}

I get the following:

p.C:5:1: internal compiler error: in tree_to_uhwi, at tree.c:7345
 }
 ^
0xff3be2 tree_to_uhwi(tree_node const*)
        /home/vitti/gcc7/gcc/tree.c:7345
0xd8005e asan_add_global
        /home/vitti/gcc7/gcc/asan.c:2268
0xd80a74 add_string_csts(constant_descriptor_tree**,
asan_add_string_csts_data*)
        /home/vitti/gcc7/gcc/asan.c:2478
0xd80fca void hash_table<tree_descriptor_hasher,
xcallocator>::traverse_noresize<asan_add_string_csts_data*,
&(add_string_csts(constant_descriptor_tree**,
asan_add_string_csts_data*))>(asan_add_string_csts_data*)
        /home/vitti/gcc7/gcc/hash-table.h:950
0xd80fca void hash_table<tree_descriptor_hasher,
xcallocator>::traverse<asan_add_string_csts_data*,
&(add_string_csts(constant_descriptor_tree**,
asan_add_string_csts_data*))>(asan_add_string_csts_data*)
        /home/vitti/gcc7/gcc/hash-table.h:972
0xd80fca asan_finish_file()
        /home/vitti/gcc7/gcc/asan.c:2550


More information about the Gcc-bugs mailing list