public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.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 [thread overview] Message-ID: <bug-60683-4-FXjbQW6hAz@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-60683-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60683 Jonathan Wakely <redi at gcc dot gnu.org> 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 <redi at gcc dot gnu.org> --- The code has undefined behaviour, you are not allowed to add declarations to namespace std, especially not std::initializer_list which is very closely tied to the compiler. On trunk we get the following stack trace: il.cc: In function ‘int test()’: il.cc:16:23: error: converting to ‘X’ from initializer list would use explicit constructor ‘X::X(std::initializer_list<int>)’ X x = {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 <http://gcc.gnu.org/bugs.html> 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: <gcc-bugs-return-447633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> 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: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> 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" <gcc-bugzilla@gcc.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? ‘gnu_v3_unified_dtor’ undeclared?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: <bug-60684-4@http.gcc.gnu.org/bugzilla/> 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=60684 Bug ID: 60684 Summary: [4.9 Regression] cp-demangle.c:2149:13: error: ‘gnu_v3_unified_dtor’ 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-prototypes -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 ‘d_ctor_dtor_name’: ../../../gcc/libiberty/cp-demangle.c:2120:13: error: ‘gnu_v3_unified_ctor’ undec lared (first use in this function) ../../../gcc/libiberty/cp-demangle.c:2120:13: note: each undeclared identifier i s reported only once for each function it appears in ../../../gcc/libiberty/cp-demangle.c:2149:13: error: ‘gnu_v3_unified_dtor’ 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: <gcc-bugs-return-447634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> 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: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> 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" <gcc-bugzilla@gcc.gnu.org> 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: <bug-54083-4-ExitUglk2g@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-54083-4@http.gcc.gnu.org/bugzilla/> References: <bug-54083-4@http.gcc.gnu.org/bugzilla/> 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?idT083 --- 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
next prev parent reply other threads:[~2014-03-27 10:55 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-03-27 10:26 [Bug c++/60683] New: " vanyacpp at gmail dot com 2014-03-27 10:55 ` redi at gcc dot gnu.org [this message] 2014-04-29 17:19 ` [Bug c++/60683] " paolo.carlini at oracle dot com 2014-12-12 18:53 ` paolo.carlini at oracle dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-60683-4-FXjbQW6hAz@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).