Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
class-deduction86.C
blob: a198ed24ec62deabd14a0b481a70d23df4c23beb [
file
] [
log
] [
blame
]
// PR c++/87709
// { dg-do compile { target c++17 } }
template
<
class
T
>
struct
lit
{
lit
(
T
)
{
}
};
template
<
class
T
>
int
operator
+(
lit
<
T
>,
lit
<
T
>)
{
return
0
;
}
auto
r2
=
(
lit
(
0
))
+
lit
(
0
);
static_assert
(
sizeof
(
lit
(
0
)));