https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68245
Bug ID: 68245 Summary: FAIL: c-c++-common/gomp/clauses-2.c -std=c++98 (internal compiler error) Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa2.0w-hp-hpux11.11 Target: hppa2.0w-hp-hpux11.11 Build: hppa2.0w-hp-hpux11.11 spawn /test/gnu/gcc/objdir/gcc/testsuite/g++/../../xg++ -B/test/gnu/gcc/objdir/g cc/testsuite/g++/../../ /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c -fno-diagnostics-show-caret -fdiagnostics-color=never -nostdinc++ -I/test/ gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11 -I/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include -I/test/gnu/gc c/gcc/libstdc++-v3/libsupc++ -I/test/gnu/gcc/gcc/libstdc++-v3/include/backward - I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=c++98 -fo penmp -S -o clauses-2.s /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c: In function 'void foo(int*, int, S, int, int, int, int)': /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:9:109: error: 'p' appears more than once in data clauses /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:11:110: error: 'p' appears more than once in data clauses /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:17:96: error: 'q' appears more than once in map clauses /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:19:103: error: 'p' appears more than once in data clauses /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:21:98: error: 't' appears more than once in map clauses /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:23:98: error: 't' appears more than once in map clauses /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:35:111: error: 't' appears more than once in data clauses /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:37:111: error: 't' appears more than once in data clauses /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:49:128: error: 't' appears more than once in data clauses/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:49:128: error: 't' appears more than once in map clauses /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:51:129: error: 't' appears more than once in data clauses/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:51:129: error: 't' appears more than once in map clauses/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c:21:11: internal compiler error: in gimplify_scan_omp_clauses, at gimplify.c:6553libbacktrace could not find executable to openPlease submit a full bug report,with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.compiler exited with status 1 FAIL: c-c++-common/gomp/clauses-2.c -std=c++98 (internal compiler error) PASS: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 9) PASS: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 11) PASS: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 17) PASS: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 19) PASS: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 21) PASS: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 23) FAIL: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 25) PASS: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 35) PASS: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 37) FAIL: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 39) FAIL: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 41) FAIL: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 43) PASS: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 49) PASS: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 49) PASS: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 51) PASS: c-c++-common/gomp/clauses-2.c -std=c++98 (test for errors, line 51) FAIL: c-c++-common/gomp/clauses-2.c -std=c++98 (test for excess errors) gcc_assert (base == decl && (offset == NULL_TREE || TREE_CODE (offset) == INTEGER_CST)); Breakpoint 1, _ZL25gimplify_scan_omp_clausesPP9tree_nodePP6gimple15omp_region_type9tree_code (list_p=0x7aebdcbc, pre_p=0x7eff0cd4, region_type=ORT_TARGET, code=OMP_TARGET) at ../../gcc/gcc/gimplify.c:6553 6553 || TREE_CODE (offset) == INTEGER_CST)); (gdb) p base $1 = (tree) 0x7b0200b0 (gdb) p decl $2 = (tree) 0x7ae38550 (gdb) p debug_tree (base) <var_decl 7b0200b0 t.0 type <record_type 7aebbae0 S type_5 type_6 BLK size <integer_cst 7aebd2e8 constant 384> unit size <integer_cst 7aebd360 constant 48> align 32 symtab 0 alias set -1 canonical type 7aebbae0 fields <field_decl 7aebbc60 r type <integer_type 7ae37420 int> used nonlocal decl_3 SI file /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c line 1 col 16 size <integer_cst 7ae24c78 constant 32> unit size <integer_cst 7ae24c90 constant 4> align 32 offset_align 64 offset <integer_cst 7ae24ca8 constant 0> bit offset <integer_cst 7ae24d08 constant 0> context <record_type 7aebbae0 S> chain <field_decl 7aebbcc0 s>> context <translation_unit_decl 7ae38000 D.1> full-name "struct S" X() X(constX&) this=(X&) n_parents=0 use_template=0 interface-unknown pointer_to_this <pointer_type 7aec2120> reference_to_this <reference_type 7aec2060> chain <type_decl 7aebbb40 S>> addressable used BLK file /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c line 5 col 1 size <integer_cst 7aebd2e8 384> unit size <integer_cst 7aebd360 48> align 32 context <function_decl 7aebe400 foo>> $3 = 10 (gdb) p debug_tree (decl) <parm_decl 7ae38550 t type <record_type 7aebbae0 S type_5 type_6 BLK size <integer_cst 7aebd2e8 constant 384> unit size <integer_cst 7aebd360 constant 48> align 32 symtab 0 alias set -1 canonical type 7aebbae0 fields <field_decl 7aebbc60 r type <integer_type 7ae37420 int> used nonlocal decl_3 SI file /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c line 1 col 16 size <integer_cst 7ae24c78 constant 32> unit size <integer_cst 7ae24c90 constant 4> align 32 offset_align 64 offset <integer_cst 7ae24ca8 constant 0> bit offset <integer_cst 7ae24d08 constant 0> context <record_type 7aebbae0 S> chain <field_decl 7aebbcc0 s>> context <translation_unit_decl 7ae38000 D.1> full-name "struct S" X() X(constX&) this=(X&) n_parents=0 use_template=0 interface-unknown pointer_to_this <pointer_type 7aec2120> reference_to_this <reference_type 7aec2060> chain <type_decl 7aebbb40 S>> addressable used BLK file /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c line 5 col 30 size <integer_cst 7aebd2e8 384> unit size <integer_cst 7aebd360 48> align 32 context <function_decl 7aebe400 foo> arg-type <record_type 7aebbae0 S> value-expr <var_decl 7b0200b0 t.0 type <record_type 7aebbae0 S> addressable used BLK file /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/gomp/clauses-2.c line 5 col 1 size <integer_cst 7aebd2e8 384> unit size <integer_cst 7aebd360 48> align 32 context <function_decl 7aebe400 foo>> chain <parm_decl 7ae385a0 i>> $4 = 10