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++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-postfix-open-square.C
blob
b43ffc33b40897a7f381dcf2bdc5a1c60311a190
1
// PR c++/51738
2
// { dg-do compile { target c++11 } }
3
4
struct Index
5
{
6
Index(unsigned, unsigned){ }
7
};
8
9
struct Matrix
10
{
11
void operator[](Index){ }
12
};
13
14
int main()
15
{
16
Matrix m;
17
m[{0,1}];
18
}