From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1476 invoked by alias); 14 Aug 2014 03:28:51 -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 1397 invoked by uid 48); 14 Aug 2014 03:28:46 -0000 From: "brooks at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/62129] New: internal compiler error: in output_constant, at varasm.c:4755 Date: Thu, 14 Aug 2014 03:28: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: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: brooks at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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 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: 2014-08/txt/msg00903.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D62129 Bug ID: 62129 Summary: internal compiler error: in output_constant, at varasm.c:4755 Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: brooks at gcc dot gnu.org Created attachment 33316 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D33316&action=3Dedit Small example program. (Google ref: b/17007254) The following program causes an ICE in output_constant, at varasm.c:4755 on= the 4.9 branch at r213772, and a similar ICE on trunk: $ cat b17007254.cc=20 class Evaluator { int MakeChangelist (); struct CreatorEntry { char *type; int (Evaluator::*factory) (); }; static constexpr CreatorEntry kCreators[] =3D { "", &Evaluator::MakeChangelist }; }; constexpr Evaluator::CreatorEntry Evaluator::kCreators[]; $ gcc-archive/4.9/213772/bin/g++ --std=3Dc++11 -c b17007254.cc b17007254.cc:9:82: warning: deprecated conversion from string constant to =E2=80=98char*=E2=80=99 [-Wwrite-strings] static constexpr CreatorEntry kCreators[] =3D { "", &Evaluator::MakeChangelist }; =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 ^ b17007254.cc:12:57: internal compiler error: in output_constant, at varasm.c:4755 constexpr Evaluator::CreatorEntry Evaluator::kCreators[]; ^ 0xb21e2a output_constant gcc/gcc-4_9-branch/gcc/varasm.c:4755 0xb26102 output_constant gcc/gcc-4_9-branch/gcc/varasm.c:4611 0xb26102 output_constructor_regular_field gcc/gcc-4_9-branch/gcc/varasm.c:4952 0xb26102 output_constructor gcc/gcc-4_9-branch/gcc/varasm.c:5231 0xb26102 output_constant gcc/gcc-4_9-branch/gcc/varasm.c:4611 0xb26102 output_constructor_regular_field gcc/gcc-4_9-branch/gcc/varasm.c:4952 0xb26102 output_constructor gcc/gcc-4_9-branch/gcc/varasm.c:5231 0xb2581e assemble_variable(tree_node*, int, int, int) gcc/gcc-4_9-branch/gcc/varasm.c:2139 0xb27455 varpool_assemble_decl(varpool_node*) gcc/gcc-4_9-branch/gcc/varpool.c:466 0x6df31d output_in_order gcc/gcc-4_9-branch/gcc/cgraphunit.c:2011 0x6df31d compile() gcc/gcc-4_9-branch/gcc/cgraphunit.c:2248 0x6df5e4 finalize_compilation_unit() gcc/gcc-4_9-branch/gcc/cgraphunit.c:2330 0x5946db cp_write_global_declarations() gcc/gcc-4_9-branch/gcc/cp/decl2.c:4611 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $ gcc-archive/trunk/213772/bin/g++ --std=3Dc++11 -c b17007254.cc b17007254.cc:9:82: warning: deprecated conversion from string constant to =E2=80=98char*=E2=80=99 [-Wwrite-strings] static constexpr CreatorEntry kCreators[] =3D { "", &Evaluator::MakeChangelist }; =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 ^ b17007254.cc:12:57: internal compiler error: in output_constant, at varasm.c:4734 constexpr Evaluator::CreatorEntry Evaluator::kCreators[]; ^ 0xe19a5a output_constant gcc/gcc-trunk/gcc/varasm.c:4734 0xe206a3 output_constructor_regular_field gcc/gcc-trunk/gcc/varasm.c:4929 0xe206a3 output_constructor gcc/gcc-trunk/gcc/varasm.c:5195 0xe19a87 output_constant gcc/gcc-trunk/gcc/varasm.c:4735 0xe206a3 output_constructor_regular_field gcc/gcc-trunk/gcc/varasm.c:4929 0xe206a3 output_constructor gcc/gcc-trunk/gcc/varasm.c:5195 0xe19a87 output_constant gcc/gcc-trunk/gcc/varasm.c:4735 0xe22235 assemble_variable(tree_node*, int, int, int) gcc/gcc-trunk/gcc/varasm.c:2175 0xe23d03 varpool_node::assemble_decl() gcc/gcc-trunk/gcc/varpool.c:553 0x8475ae output_in_order gcc/gcc-trunk/gcc/cgraphunit.c:2012 0x8475ae compile() gcc/gcc-trunk/gcc/cgraphunit.c:2249 0x848bc4 finalize_compilation_unit() gcc/gcc-trunk/gcc/cgraphunit.c:2331 0x638155 cp_write_global_declarations() gcc/gcc-trunk/gcc/cp/decl2.c:4644 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >>From gcc-bugs-return-458407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 14 03:46:49 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5988 invoked by alias); 14 Aug 2014 03:46:46 -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 5901 invoked by uid 48); 14 Aug 2014 03:46:30 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/60465] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info Date: Thu, 14 Aug 2014 03:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: 2014-08/txt/msg00904.txt.bz2 Content-length: 251 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465 --- Comment #11 from Andrew Pinski --- This sounds like the same bug which I fixed with the set of patches at https://gcc.gnu.org/ml/gcc-patches/2014-08/msg00932.html .