repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if19.C
blob
40016a5b7e1176bda81e4d1e2c3e7ddc92e3d2de
1
// PR c++/85200
2
// { dg-additional-options -std=c++17 }
3
4
struct A{
5
constexpr operator int(){ return 0; }
6
};
7
8
template < typename >
9
void f(){
10
[](auto known){
11
if constexpr(constexpr int k = known);
12
}(A{});
13
}
14
15
int main(){
16
f<int>();
17
}