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++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-defarg2.C
blob
65240355fc33bc25a673afe3fde8754c071c0658
1
// PR c++/82336
2
// { dg-do link { target c++11 } }
3
4
struct foo { int x = 5; };
5
struct bar : foo { bar() = default; };
6
struct baz { bar x; };
7
void qux(baz = {}){}
8
int main() { qux(); }