http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57041
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |jason at gcc dot gnu.org Summary|ICE in lookup_field_1, at |[4.7/4.8 Regression] ICE in |cp/search.c:376 (with |lookup_field_1, at |dot-prefixed structure |cp/search.c:376 (with |initialisation) |dot-prefixed structure | |initialisation) --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-23 09:41:49 UTC --- Reduced testcase: namespace std { template <class T1, class T2> struct pair { T1 first; T2 second; }; template <class T> struct initializer_list { }; template <typename T1, typename T2> struct map { map () {} map (initializer_list <pair <T1, T2>> l) {} }; } template <class T> void foo (T &p) { p.v = { { 0, { .a = 0, .b = 1 } } }; } int main () { struct { struct A { int a, b; }; std::map <int, A> v; } p; foo (p); } Started to ICE with http://gcc.gnu.org/r176530 .