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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
class-deduction28.C
blob
2fec7f79bac347c81871f9f338e6ec8bcf794a49
1
// PR c++/79350
2
// { dg-do compile { target c++17 } }
3
4
template <class T>
5
struct A
6
{
7
explicit A(T);
8
};
9
10
11
A a (42);
12
A a2 = 42; // { dg-error "" }
13
14
template <class T>
15
struct B
16
{
17
B(T*);
18
};
19
20
template <class T>
21
explicit B(T) -> B<T*>;
22
23
B b1 (0);
24
B b2 = 0; // { dg-error "" }