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

            Bug ID: 97646
           Summary: FAIL: obj-c++.dg/template-4.mm due to ICE in n
                    potential_constant_expression_1, at
                    cp/constexpr.c:8417
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

While testing an unrelated bug I see the obj-c++.dg/template-4.mm test fail
with the ICE below:

spawn -ignore SIGHUP /ssd/test/build/gcc-97556/gcc/testsuite/obj-c++/../../xg++ 
-B/ssd/test/build/gcc-97556/gcc/testsuite/obj-c++/../../
/ssd/test/src/gcc/97556
/gcc/testsuite/obj-c++.dg/template-4.mm -fdiagnostics-plain-output -nostdinc++
-
I/ssd/test/build/gcc-97556/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-li
nux-gnu -I/ssd/test/build/gcc-97556/x86_64-pc-linux-gnu/libstdc++-v3/include
-I/
ssd/test/src/gcc/97556/libstdc++-v3/libsupc++
-I/ssd/test/src/gcc/97556/libstdc+
+-v3/include/backward -I/ssd/test/src/gcc/97556/libstdc++-v3/testsuite/util
-fme
ssage-length=0 -fgnu-runtime -ansi -pedantic-errors -Wno-long-long
-I/ssd/test/s
rc/gcc/97556/gcc/testsuite/../../libobjc
/ssd/test/src/gcc/97556/gcc/testsuite/o
bj-c++.dg/../objc-obj-c++-shared/nsconstantstring-class-impl.mm -dumpbase 
-B/ss
d/test/build/gcc-97556/x86_64-pc-linux-gnu/./libstdc++-v3/src/.libs
-L/ssd/test/
build/gcc-97556/x86_64-pc-linux-gnu/./libstdc++-v3/src/.libs
-B/ssd/test/build/g
cc-97556/x86_64-pc-linux-gnu/./libstdc++-v3/src/.libs
-L/ssd/test/build/gcc-97556/x86_64-pc-linux-gnu/./libstdc++-v3/src/.libs
-B/ssd/test/build/gcc-97556/x86_64-pc-linux-gnu/./libobjc/.libs
-L/ssd/test/build/gcc-97556/x86_64-pc-linux-gnu/./libobjc/.libs -lobjc -lm -o
./template-4.exe
/ssd/test/src/gcc/97556/gcc/testsuite/obj-c++.dg/template-4.mm: In
instantiation of 'int TestT<ARR, TYPE>::abc(ARR*) [with ARR = Array; TYPE =
int]':
/ssd/test/src/gcc/97556/gcc/testsuite/obj-c++.dg/template-4.mm:82:3:   required
from here
/ssd/test/src/gcc/97556/gcc/testsuite/obj-c++.dg/template-4.mm:28:26: sorry,
unimplemented: unexpected AST of kind message_send_expr
/ssd/test/src/gcc/97556/gcc/testsuite/obj-c++.dg/template-4.mm:28:26: internal
compiler error: in potential_constant_expression_1, at cp/constexpr.c:8417
0x99d8fd potential_constant_expression_1
        /ssd/test/src/gcc/97556/gcc/cp/constexpr.c:8417
0x99da6d potential_constant_expression_1
        /ssd/test/src/gcc/97556/gcc/cp/constexpr.c:8323
0x99fd84 potential_constant_expression_1(tree_node*, bool, bool, bool, int)
        /ssd/test/src/gcc/97556/gcc/cp/constexpr.c:8428
0xae9a1e tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        /ssd/test/src/gcc/97556/gcc/cp/pt.c:19637
0xb06a06 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        /ssd/test/src/gcc/97556/gcc/cp/pt.c:18936
0xb06a06 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        /ssd/test/src/gcc/97556/gcc/cp/pt.c:17984
0xb08a60 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        /ssd/test/src/gcc/97556/gcc/cp/pt.c:18021
0xb08a60 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        /ssd/test/src/gcc/97556/gcc/cp/pt.c:17984
0xb0887a tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        /ssd/test/src/gcc/97556/gcc/cp/pt.c:18328
0xb0887a tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        /ssd/test/src/gcc/97556/gcc/cp/pt.c:17984
0xaf3939 instantiate_body
        /ssd/test/src/gcc/97556/gcc/cp/pt.c:25633
0xaf4bdd instantiate_decl(tree_node*, bool, bool)
        /ssd/test/src/gcc/97556/gcc/cp/pt.c:25922
0xb245e3 instantiate_pending_templates(int)
        /ssd/test/src/gcc/97556/gcc/cp/pt.c:26001
0xa1e05b c_parse_final_cleanups()
        /ssd/test/src/gcc/97556/gcc/cp/decl2.c:4904
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to