Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
class-deduction9.C
blob: c0af9447e7b53ad6f10553c045d9a4a31a29b7a4 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++17 } }
namespace
N
{
template
<
class
T
>
struct
A
{
int
i
;
A
(...);
};
}
template
<
class
T
>
N
::
A
(
T
)
->
N
::
A
<
T
>;
// { dg-error "should have been declared inside .N" }
namespace
N
{
template
<
class
T
>
A
(
T
)
->
A
<
T
>;
}