Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
static2.C
blob: 5d93a0e7242bdb87fce4a4f6da9142c04dd2cdea [
file
] [
log
] [
blame
]
// { dg-do compile { target c++17 } }
template
<
class
T
>
struct
A
{
static
constexpr
auto
x
=
T
::
x
;
// { dg-error "incomplete" }
};
struct
B
;
A
<
B
>
a
;
struct
B
{
static
constexpr
auto
x
=
42
;
};
auto
x
=
a
.
x
;