Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
nontype-auto18.C
blob: 936c841ce31e9217c051821e77e12bdb0ac57147 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
template
<int>
struct
K
{
};
struct
S
{
using
type
=
int
;
};
template
<
class
T
=
S
,
typename
T
::
type M
>
int
g
(
K
<
M
>);
int
a
=
g
(
K
<
42
>{});