From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11698 invoked by alias); 23 Apr 2013 09:41:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 11644 invoked by uid 48); 23 Apr 2013 09:41:50 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57041] [4.7/4.8 Regression] ICE in lookup_field_1, at cp/search.c:376 (with dot-prefixed structure initialisation) Date: Tue, 23 Apr 2013 09:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Changed-Fields: CC Summary Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg01927.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57041 Jakub Jelinek 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 2013-04-23 09:41:49 UTC --- Reduced testcase: namespace std { template struct pair { T1 first; T2 second; }; template struct initializer_list { }; template struct map { map () {} map (initializer_list > l) {} }; } template void foo (T &p) { p.v = { { 0, { .a = 0, .b = 1 } } }; } int main () { struct { struct A { int a, b; }; std::map v; } p; foo (p); } Started to ICE with http://gcc.gnu.org/r176530 .