Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
class-deduction79.C
blob: ebbe2b21d90902d2c0087ed2468edb8c0b769059 [
file
] [
log
] [
blame
]
// PR c++/99103
// { dg-do compile { target c++17 } }
#include
<initializer_list>
template
<
class
T
>
struct
S
{
S
(
std
::
initializer_list
<
T
>);
};
extern
const
S
<int>
x
;
using
type
=
decltype
(
S
{
x
});
using
type
=
S
<int>
;
// not S<S<int>>