Debian Codegraph @

gcc/testsuite/g++.dg/parse/crash75.C

raw
1 // PR c++/108438
2 // { dg-options "-Wlogical-not-parentheses" }
3
4 template <typename T>
5 T foo (T arg, T& ref, T* ptr)
6 {
7 int a = 1;
8 return static_cast<T!>(a); // { dg-error "expected" }
9 }