☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
defarg21.C
☽
☼
gcc/testsuite/g++.dg/template/defarg21.C
code
plain
raw
1
// PR c++/71822
2
// { dg-do compile }
3
4
int bar (int);
5
6
template <typename T>
7
struct A
8
{
9
explicit A (int x = bar (sizeof (T)));
10
};
11
12
struct B
13
{
14
A <int> b[2];
15
};
16
17
void
18
baz ()
19
{
20
B b;
21
}