Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
nsdmi-aggr6.C
blob: 83fdedde11e26290e6de20373d703426202fd808 [
file
] [
log
] [
blame
]
// PR c++/77659
// { dg-do compile { target c++14 } }
template
<
typename
Type
>
Type
get_max_value
(
Type
);
struct
A
{
struct
B
{
int
baz
=
get_max_value
(
baz
);
};
template
<typename>
void
m_fn1
()
{
new
B
{};
}
};
void
foo
()
{
A a
;
a
.
m_fn1
<int>
();
}