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
c++: add fixed testcase [PR63378]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
fnspec3.C
blob
c36cb17751d3981550c4eaf48f60ce171ab46cee
1
// PR c++/63378
2
// { dg-do compile { target c++11 } }
3
4
template<class T1, class S1>
5
struct B { };
6
7
template<class T1>
8
struct A {
9
private:
10
template<class T2, class S2>
11
static B<T2, S2> g();
12
13
public:
14
template<class S2>
15
auto f() -> decltype(g<T1, S2>());
16
};
17
18
template<>
19
template<>
20
auto A<int>::f<float>() -> B<int, float>;