[Bug c/79431] New: ICE in get, at cgraph.h:397
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Feb 8 17:21:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79431
Bug ID: 79431
Summary: ICE in get, at cgraph.h:397
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gerhard.steinmetz.fortran@t-online.de
Target Milestone: ---
Affects versions 6 and 7 (configured with --enable-checking=yes) :
(compiles with "static int a")
$ cat z1.c
void fn1 ()
{
int a;
#pragma omp declare target (a)
}
$ gcc-6 -fopenmp -c z1.c # official release 6.3.1 20170131
$
$ gcc-7-20170205 -fopenmp -c z1.c
z1.c: In function 'fn1':
z1.c:4:11: internal compiler error: in get, at cgraph.h:397
#pragma omp declare target (a)
^~~
0x6d14d9 symtab_node::get(tree_node const*)
../../gcc/cgraph.h:394
0x6d14d9 c_parser_omp_declare_target
../../gcc/c/c-parser.c:16850
0x6d14d9 c_parser_omp_declare
../../gcc/c/c-parser.c:17290
0x6b406b c_parser_pragma
../../gcc/c/c-parser.c:10313
0x6d3f0e c_parser_compound_statement_nostart
../../gcc/c/c-parser.c:4875
0x6d44ce c_parser_compound_statement
../../gcc/c/c-parser.c:4740
0x6cf90c c_parser_declaration_or_fndef
../../gcc/c/c-parser.c:2112
0x6d791b c_parser_external_declaration
../../gcc/c/c-parser.c:1468
0x6d8379 c_parser_translation_unit
../../gcc/c/c-parser.c:1348
0x6d8379 c_parse_file()
../../gcc/c/c-parser.c:18185
0x736892 c_common_parse_file()
../../gcc/c-family/c-opts.c:1107
More information about the Gcc-bugs
mailing list