repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist114.C
blob
ffd7fa973bdd613547d813d5c07c954712f9f567
1
// PR c++/89315
2
// { dg-do compile { target c++11 } }
3
4
#include <initializer_list>
5
6
struct bar {
7
bar(std::initializer_list<int>, int = int());
8
};
9
10
struct i {
11
const bar & invitees;
12
};
13
14
template <typename = void> struct n {
15
public:
16
void m_fn1() { i{{}}; }
17
};
18
19
struct o : n<> {
20
void p() { m_fn1(); }
21
};