repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
defarg21.C
blob
6ac227665ef8ec70bfa37fc29f2787e52ff34749
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
}