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++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
partial-order1.C
blob
0832ea535caa6a0dac3a4c423700fe59e71f9f17
1
// { dg-do compile { target c++11 } }
2
3
using size_t = decltype(sizeof(0));
4
template <class T> struct A
5
{
6
using size_type = size_t;
7
};
8
9
template <class T>
10
void f(size_t, T);
11
12
template <class T>
13
void f(typename A<T>::size_type, T);
14
15
int main()
16
{
17
f(1,2); // { dg-error "ambiguous" }
18
}