From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3583 invoked by alias); 2 Apr 2013 14:37:54 -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 3517 invoked by uid 48); 2 Apr 2013 14:37:47 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/22488] C++ frontend generates RECORD_TYPEs with overlapping FIELD_DECLs Date: Tue, 02 Apr 2013 14:37: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: alias, ice-on-valid-code, monitored X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC 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/msg00127.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22488 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot | |gnu.org --- Comment #58 from Eric Botcazou 2013-04-02 14:37:43 UTC --- > The C++ frontend issue makes it impossible to implement a GENERIC verifier > for RECORD_TYPEs (verify FIELD_DECLs are sorted after offset and not > overlapping). To be fair, I think that the Ada front-end still has the same issue. We fixed the biggest source (constrained subtypes of record types with variant part) a few releases ago, but there is still one problematic case (record type with variant part and partial representation clause).