☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
class-deduction60.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/class-deduction60.C
code
plain
raw
1
// PR c++/81486
2
// { dg-do compile { target c++17 } }
3
4
template <class T>
5
struct C {
6
C(T);
7
};
8
9
template <>
10
struct C<void> { };
11
12
C() -> C<void>;
13
14
int
15
main()
16
{
17
auto a = C{};
18
auto b = C();
19
}