[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / anon-struct4.C
blobb3fdd4c15ec23a70c834fc40aecb745bc8b2d81c
1 // PR c++/14401
3 struct { struct { int& i ; } bar ; } foo ; // { dg-error "deleted|uninitialized" "uninit" }
4 // { dg-warning "unnamed" "anon" { target { ! c++11 } } .-1 }
5 // { dg-message "should be initialized" "ref-uninit" { target { ! c++11 } } .-2 }