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 c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
canon-type-9.C
blob
c15f93ad7536af876556a3715106381cd4900a62
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// { dg-do compile { target c++11 } }
3
4
struct F { F(int) {}};
5
6
template<class T, T* u>
7
struct S
8
{
9
decltype(u) foo(T);
10
};
11
12
template<class T, T *u>
13
decltype(u) S<T, u>::foo(T)
14
{
15
T t;
16
return t;
17
}