From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 102784 invoked by alias); 18 Jun 2015 10:32:21 -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 102752 invoked by uid 48); 18 Jun 2015 10:32:16 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66585] Internal compiler error when initialize field with lambda Date: Thu, 18 Jun 2015 10:32: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: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: NEW 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_status cf_reconfirmed_on cc cf_known_to_work everconfirmed cf_known_to_fail 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: 2015-06/txt/msg01626.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66585 Markus Trippelsdorf changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-06-18 CC| |trippels at gcc dot gnu.org Known to work| |4.9.2 Ever confirmed|0 |1 Known to fail| |5.0, 6.0 --- Comment #1 from Markus Trippelsdorf --- markus@x4 tmp % cat bug.ii class A { template using _Requires =3D int; public: template > A(_Functor); }; template class B { A f =3D [](T) {}; }; B a; markus@x4 tmp % g++ -c --std=3Dc++11 bug.ii bug.ii: In instantiation of =E2=80=98B:: [with T =3D int]=E2= =80=99: bug.ii:9:10: required from =E2=80=98struct B::=E2=80=99 bug.ii:12:8: required from here bug.ii:9:13: internal compiler error: Segmentation fault A f =3D [](T) {}; ^ 0xccc84f crash_signal ../../gcc/gcc/toplev.c:369 0x62adea contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/gcc/tree.h:2971 0x62adea instantiate_decl(tree_node*, int, bool) ../../gcc/gcc/cp/pt.c:20496 0x66a9fc instantiate_class_template_1 ../../gcc/gcc/cp/pt.c:9647 0x66a9fc instantiate_class_template(tree_node*) ../../gcc/gcc/cp/pt.c:9715 0x707c2b complete_type(tree_node*) ../../gcc/gcc/cp/typeck.c:140 0x6445bf tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../gcc/gcc/cp/pt.c:15743 0x731c98 get_nsdmi(tree_node*, bool) ../../gcc/gcc/cp/init.c:558 0x740fca walk_field_subobs ../../gcc/gcc/cp/method.c:1213 0x741ae4 synthesized_method_walk ../../gcc/gcc/cp/method.c:1539 0x745c3a get_defaulted_eh_spec(tree_node*) ../../gcc/gcc/cp/method.c:1570 0x6530eb maybe_instantiate_noexcept(tree_node*) ../../gcc/gcc/cp/pt.c:20111 0x6adeda mark_used(tree_node*, int) ../../gcc/gcc/cp/decl2.c:4991 0x5c6a80 build_over_call ../../gcc/gcc/cp/call.c:7496 0x5d1a8e build_new_method_call_1 ../../gcc/gcc/cp/call.c:8212 0x5d1a8e build_new_method_call(tree_node*, tree_node*, vec**, tree_node*, int, tree_node**, int) ../../gcc/gcc/cp/call.c:8282 0x5d2a49 build_special_member_call(tree_node*, tree_node*, vec**, tree_node*, int, int) ../../gcc/gcc/cp/call.c:7822 0x736338 expand_default_init ../../gcc/gcc/cp/init.c:1728 0x736338 expand_aggr_init_1 ../../gcc/gcc/cp/init.c:1829 0x737034 build_aggr_init(tree_node*, tree_node*, int, int) ../../gcc/gcc/cp/init.c:1578 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-489295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 18 10:41:01 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48725 invoked by alias); 18 Jun 2015 10:41:00 -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 48697 invoked by uid 48); 18 Jun 2015 10:40:57 -0000 From: "jmcguiness at liquidcapital dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66584] gcc differs in static, branch-prediction cost from icc in switch. Date: Thu, 18 Jun 2015 10:41: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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jmcguiness at liquidcapital 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: 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-06/txt/msg01627.txt.bz2 Content-length: 512 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66584 --- Comment #1 from Jason McG --- (In reply to Jason McG from comment #0) I got my static bp summaries wrong, corrected: > void foo(int i) { > switch(i) { > case 1: bar1(); // gcc: less likely (same as default) | icc: most likely > break; > case 2: bar2(); // gcc: most likely | icc: less likely > break; > default: bar3(); // gcc: less likely (same as case 1) | icc: least likely > } > }