From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 983 invoked by alias); 27 Mar 2014 10:55:45 -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 892 invoked by uid 48); 27 Mar 2014 10:55:41 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60683] confused by earlier errors, bailing out on incorrect std::initializer_list Date: Thu, 27 Mar 2014 10:55: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: 4.7.2 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: 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-03/txt/msg02501.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60683 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2014-03-27 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- The code has undefined behaviour, you are not allowed to add declarations to namespace std, especially not std::initializer_list which is very closely t= ied to the compiler. On trunk we get the following stack trace: il.cc: In function =E2=80=98int test()=E2=80=99: il.cc:16:23: error: converting to =E2=80=98X=E2=80=99 from initializer list= would use explicit constructor =E2=80=98X::X(std::initializer_list)=E2=80=99 X x =3D {10, 10, 10}; ^ il.cc:16:23: internal compiler error: Segmentation fault 0xb5682f crash_signal /home/jwakely/src/gcc/gcc/gcc/toplev.c:337 0x553bd9 contains_struct_check /home/jwakely/src/gcc/gcc/gcc/tree.h:2826 0x553bd9 convert_like_real /home/jwakely/src/gcc/gcc/gcc/cp/call.c:6129 0x555121 build_over_call /home/jwakely/src/gcc/gcc/gcc/cp/call.c:7010 0x5537ec convert_like_real /home/jwakely/src/gcc/gcc/gcc/cp/call.c:6032 0x55310c convert_like_real /home/jwakely/src/gcc/gcc/gcc/cp/call.c:6162 0x558196 perform_implicit_conversion_flags(tree_node*, tree_node*, int, int) /home/jwakely/src/gcc/gcc/gcc/cp/call.c:9091 0x6a3617 ocp_convert(tree_node*, tree_node*, int, int, int) /home/jwakely/src/gcc/gcc/gcc/cp/cvt.c:863 0x6b0c0d expand_default_init /home/jwakely/src/gcc/gcc/gcc/cp/init.c:1618 0x6b0c0d expand_aggr_init_1 /home/jwakely/src/gcc/gcc/gcc/cp/init.c:1787 0x6b33aa build_aggr_init(tree_node*, tree_node*, int, int) /home/jwakely/src/gcc/gcc/gcc/cp/init.c:1538 0x566e6c build_aggr_init_full_exprs /home/jwakely/src/gcc/gcc/gcc/cp/decl.c:5591 0x566e6c check_initializer /home/jwakely/src/gcc/gcc/gcc/cp/decl.c:5726 0x579d75 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) /home/jwakely/src/gcc/gcc/gcc/cp/decl.c:6394 0x66bcff cp_parser_init_declarator /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:16858 0x66d5fe cp_parser_simple_declaration /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:11225 0x651c00 cp_parser_block_declaration /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:11106 0x652cc0 cp_parser_declaration_statement /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:10753 0x653327 cp_parser_statement /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:9486 0x6540ae cp_parser_statement_seq_opt /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:9764 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-447633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 27 12:20:57 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31718 invoked by alias); 27 Mar 2014 12:20:56 -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 31676 invoked by uid 48); 27 Mar 2014 12:20:50 -0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/60684] New: [4.9 Regression] cp-demangle.c:2149:13: error:=?UTF-8?Q?=20=E2=80=98gnu=5Fv3=5Funified=5Fdtor=E2=80=99=20undeclared?= Date: Thu, 27 Mar 2014 12:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin 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 cf_gcchost cf_gcctarget cf_gccbuild 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-03/txt/msg02502.txt.bz2 Content-length: 1396 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60684 Bug ID: 60684 Summary: [4.9 Regression] cp-demangle.c:2149:13: error: =E2=80=98gnu_v3_unified_dtor=E2=80=99 undeclared Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Host: hppa-unknown-linux-gnu Target: hppa-unknown-linux-gnu Build: hppa-unknown-linux-gnu gcc-4.6 -c -DHAVE_CONFIG_H -g -O2 -I/usr/include/libiberty -I. -I../../../gcc/li biberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototyp= es -p edantic ../../../gcc/libiberty/cp-demangle.c -o cp-demangle.o yes checking for gcc-4.6 option to accept ISO C89... ../../../gcc/libiberty/cp-deman gle.c: In function =E2=80=98d_ctor_dtor_name=E2=80=99: ../../../gcc/libiberty/cp-demangle.c:2120:13: error: =E2=80=98gnu_v3_unifie= d_ctor=E2=80=99 undec lared (first use in this function) ../../../gcc/libiberty/cp-demangle.c:2120:13: note: each undeclared identif= ier i s reported only once for each function it appears in ../../../gcc/libiberty/cp-demangle.c:2149:13: error: =E2=80=98gnu_v3_unifie= d_dtor=E2=80=99 undec lared (first use in this function) Breaks build in stage1. >>From gcc-bugs-return-447634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 27 12:37:17 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9999 invoked by alias); 27 Mar 2014 12:37:17 -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 9934 invoked by uid 55); 27 Mar 2014 12:37:12 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin* Date: Thu, 27 Mar 2014 12:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: NEW 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-03/txt/msg02503.txt.bz2 Content-length: 264 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54083 --- Comment #22 from dave.anglin at bell dot net --- On 27-Mar-14, at 5:37 AM, dominiq at lps dot ens.fr wrote: > Please commit your patch, I'll adjust mine. Done. -- John David Anglin dave.anglin@bell.net