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

--- Comment #4 from vries at gcc dot gnu.org ---
Created attachment 35890
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35890&action=edit
patch to detect problem earlier

Using this patch, we can trigger the problem earlier:
...
In file included from
src/libgomp/testsuite/libgomp.oacc-c/../libgomp.oacc-c-c++-common/pr66714.c:4:0:
src/libgomp/testsuite/libgomp.oacc-c/../libgomp.oacc-c-c++-common/atomic_capture-1.c:
In function ‘main._omp_fn.46’:
src/libgomp/testsuite/libgomp.oacc-c/../libgomp.oacc-c-c++-common/atomic_capture-1.c:853:9:
internal compiler error: in decl_value_expr_lookup, at tree.c:6773
0x11c902b decl_value_expr_lookup(tree_node*)
        src/gcc/tree.c:6773
0xa43cae instantiate_expr
        src/gcc/function.c:1851
0x11d914e walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hashset_traits>*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hashset_traits>*))
        src/gcc/tree.c:11132
0xa43e5f instantiate_decls_1
        src/gcc/function.c:1874
0xa443d2 instantiate_decls
        src/gcc/function.c:1922
0xa44874 instantiate_virtual_regs
        src/gcc/function.c:1979
0xa448da execute
        src/gcc/function.c:2015
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.
...

The problem now also triggers without -g.

Reply via email to