From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108437 invoked by alias); 8 May 2015 07:41:48 -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 108400 invoked by uid 48); 8 May 2015 07:41:44 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/66068] New: error: type variant has different TYPE_VFIELD Date: Fri, 08 May 2015 07:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg00665.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66068 Bug ID: 66068 Summary: error: type variant has different TYPE_VFIELD Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 35495 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D35495&action=3Dedit C source code The attached code, when compiled by gcc trunk dated 20150506 and with flag -g, says this: udns_resolver.c: In function =E2=80=98dns_new=E2=80=99: udns_resolver.c:474:1: error: type variant has different TYPE_VFIELD ... udns_resolver.c:474:1: internal compiler error: verify_type failed 0xe3782b verify_type(tree_node const*) ../../src/trunk/gcc/tree.c:12695 0x7de490 gen_type_die_with_usage ../../src/trunk/gcc/dwarf2out.c:20247 0x7cede2 gen_type_die_with_usage ../../src/trunk/gcc/dwarf2out.c:20334 0x7cd756 gen_type_die ../../src/trunk/gcc/dwarf2out.c:20431 >>From gcc-bugs-return-485826-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 08 07:45:49 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122982 invoked by alias); 8 May 2015 07:45:48 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122935 invoked by uid 48); 8 May 2015 07:45:43 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/66066] [6 Regression] r222889 causes bogus error: initializer element is not constant Date: Fri, 08 May 2015 07:45: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-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg00666.txt.bz2 Content-length: 454 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66066 --- Comment #2 from Markus Trippelsdorf --- (In reply to Marek Polacek from comment #1) > Yes, that is expected (in C99!). See > . New tests > c90-left-shift-1.c and c99-left-shift-1.c explicitly test such behavior. Hmm, that looks quite unfortunate from a qoi standpoint. It will break tons of existing code.