1 // PR c++/34049 2 3 struct foo 4 { 5 int operator[](int) const { return 0; } 6 }; 7 main()8 int main() 9 { 10 (foo()[0]); 11 return 0; 12 } 13