Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
class-deduction22.C
blob: 0a260850be073c702d3af8a925cc42405f2a5439 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++17 } }
template
<
template
<class>
class
T
>
void
f
()
{
T t
=
42
;
// { dg-error "B" }
}
template
<
class
T
>
struct
A
{
A
(
T
);
};
template
<
class
T
>
using
B
=
T
;
int
main
()
{
f
<
A
>();
f
<
B
>();
// { dg-message "here" }
}