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
c: fix ICE when forming composite type for two structures / unions [PR117548]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist57.C
blob
6f662ef03b6679e46b0ec651d4b9b4497166f6af
1
// PR c++/50054
2
// { dg-do compile { target c++11 } }
3
4
void g( const int& (a)[1] ) {} // { dg-error "21:declaration of .a. as array of references" }
5
6
int main () {
7
g( { 1, 2 } ); // { dg-error "initializer list" }
8
}