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
Fix sorting in Contributors.html
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
nontype-class65.C
blob
8397ea5a886e7029edf409c9b51fae08b120d66a
1
// PR c++/113649
2
// { dg-do compile { target c++20 } }
3
4
template<class... Args>
5
struct A {
6
template<class Ret>
7
struct Fun { constexpr Fun(Ret(*)(Args...)) { } };
8
9
template<Fun f>
10
struct B { using type = decltype(f); };
11
};
12
13
bool f(char, long);
14
15
using type = A<char, long>::B<&f>::type;
16
using type = A<char, long>::Fun<bool>;