Debian Codegraph @

gcc/testsuite/g++.target/s390/zvec-templ-1.C

raw
1 // { dg-do compile }
2 // { dg-options "-O0 -mzvector -march=arch14 -mzarch" }
3 // { dg-bogus "internal compiler error" "ICE" { target s390*-*-* } 23 }
4 // { dg-excess-errors "" }
5
6 /* This used to ICE with checking enabled because
7 s390_resolve_overloaded_builtin gets called on NON_DEPENDENT_EXPR
8 arguments. We then try to determine the type of it, get an error
9 node and ICEd consequently when using this.
10
11 This particular instance of the problem disappeared when
12 NON_DEPENDENT_EXPRs got removed with:
13
14 commit dad311874ac3b3cf4eca1c04f67cae80c953f7b8
15 Author: Patrick Palka <[email protected]>
16 Date: Fri Oct 20 10:45:00 2023 -0400
17
18 c++: remove NON_DEPENDENT_EXPR, part 1
19
20 Nevertheless we should check for error mark nodes in that code. */
21
22 template <typename> void foo() {
23 __builtin_s390_vec_perm( , , );
24 }