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
/
class-deduction12.C
blob
e858dcf8da1db0c563796dbfd75dec24086c9bb6
1
// { dg-options -std=c++17 }
2
3
template <class T>
4
struct A
5
{
6
template<class U, template<U u> class P>
7
A(T,U,P<42>);
8
};
9
10
template <int I> struct B { };
11
12
int i;
13
A a(&i,2,B<42>());
14
15
template <class,class> class same;
16
template <class T> class same<T,T> {};
17
same<decltype(a), A<int*>> s;