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-deduction42.C
blob
4623e742fb8212e7a1d19788943563e712186e02
1
// { dg-options -std=c++17 }
2
3
#include <initializer_list>
4
5
template <class,class> struct same;
6
template <class T> struct same<T,T> { };
7
8
template <class T>
9
struct A
10
{
11
A(const A&);
12
A(std::initializer_list<T>);
13
};
14
15
A a { 1 };
16
A b { a };
17
18
same<decltype (a), decltype (b)> s;
19