From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17502 invoked by alias); 5 Oct 2015 04:08:59 -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 17470 invoked by uid 48); 5 Oct 2015 04:08:55 -0000 From: "su at cs dot ucdavis.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67846] New: ICE on code with lambda expression on x86_64-linux-gnu in check_return_expr, at cp/typeck.c:8609 Date: Mon, 05 Oct 2015 04:08: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: su at cs dot ucdavis.edu 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 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-10/txt/msg00295.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67846 Bug ID: 67846 Summary: ICE on code with lambda expression on x86_64-linux-gnu in check_return_expr, at cp/typeck.c:8609 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu Target Milestone: --- The following code causes an ICE when compiled with the current gcc trunk on x86_64-linux-gnu.=20=20 $ g++-trunk -v Using built-in specs. COLLECT_GCC=3Dg++-trunk COLLECT_LTO_WRAPPER=3D/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/= 6.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --prefix=3D/usr/local/gcc-trunk --enable-languages=3Dc,c++ --disable-werror --enable-multilib Thread model: posix gcc version 6.0.0 20151004 (experimental) [trunk revision 228457] (GCC)=20 $=20 $ g++-trunk -c small.cc small.cc: In lambda function: small.cc:5:23: error: invalid use of member function (did you forget the = =E2=80=98()=E2=80=99 ?) [=3D] { return foo; }; ^ small.cc:5:23: internal compiler error: in check_return_expr, at cp/typeck.c:8609 0x723c8d check_return_expr(tree_node*, bool*) ../../gcc-trunk/gcc/cp/typeck.c:8609 0x7610be finish_return_stmt(tree_node*) ../../gcc-trunk/gcc/cp/semantics.c:873 0x705e44 cp_parser_lambda_body ../../gcc-trunk/gcc/cp/parser.c:9855 0x705e44 cp_parser_lambda_expression ../../gcc-trunk/gcc/cp/parser.c:9360 0x6d92b7 cp_parser_primary_expression ../../gcc-trunk/gcc/cp/parser.c:4713 0x6e410b cp_parser_postfix_expression ../../gcc-trunk/gcc/cp/parser.c:6404 0x6e4c99 cp_parser_unary_expression ../../gcc-trunk/gcc/cp/parser.c:7689 0x6e58d7 cp_parser_binary_expression ../../gcc-trunk/gcc/cp/parser.c:8442 0x6e5fdf cp_parser_assignment_expression ../../gcc-trunk/gcc/cp/parser.c:8700 0x6e89f1 cp_parser_expression ../../gcc-trunk/gcc/cp/parser.c:8854 0x6e9cb6 cp_parser_expression_statement ../../gcc-trunk/gcc/cp/parser.c:10270 0x6ff07a cp_parser_statement ../../gcc-trunk/gcc/cp/parser.c:10121 0x6ffee9 cp_parser_statement_seq_opt ../../gcc-trunk/gcc/cp/parser.c:10393 0x70004b cp_parser_compound_statement ../../gcc-trunk/gcc/cp/parser.c:10347 0x70025b cp_parser_function_body ../../gcc-trunk/gcc/cp/parser.c:20112 0x70025b cp_parser_ctor_initializer_opt_and_function_body ../../gcc-trunk/gcc/cp/parser.c:20148 0x7010f9 cp_parser_function_definition_after_declarator ../../gcc-trunk/gcc/cp/parser.c:24755 0x704cdc cp_parser_late_parsing_for_member ../../gcc-trunk/gcc/cp/parser.c:25559 0x6e0199 cp_parser_class_specifier_1 ../../gcc-trunk/gcc/cp/parser.c:20972 0x6e0199 cp_parser_class_specifier ../../gcc-trunk/gcc/cp/parser.c:20998 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $=20 -------------------------- class A { void foo () { [=3D] { return foo; }; } }; >>From gcc-bugs-return-498741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 05 05:13:59 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96709 invoked by alias); 5 Oct 2015 05:13:58 -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 96689 invoked by uid 48); 5 Oct 2015 05:13:53 -0000 From: "su at cs dot ucdavis.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67847] New: ICE on (invalid) nested enum declaration on x86_64-linux-gnu in is_ancestor, at cp/name-lookup.c:2771 Date: Mon, 05 Oct 2015 05:13: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: su at cs dot ucdavis.edu 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 Message-ID: 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-10/txt/msg00296.txt.bz2 Content-length: 3105 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67847 Bug ID: 67847 Summary: ICE on (invalid) nested enum declaration on x86_64-linux-gnu in is_ancestor, at cp/name-lookup.c:2771 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu Target Milestone: --- The following code causes an ICE when compiled with the current gcc trunk (and earlier GCC versions) on x86_64-linux-gnu. $ g++-trunk -v Using built-in specs. COLLECT_GCC=g++-trunk COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk --enable-languages=c,c++ --disable-werror --enable-multilib Thread model: posix gcc version 6.0.0 20151004 (experimental) [trunk revision 228457] (GCC) $ $ g++-trunk -c small.cc small.cc:4:11: internal compiler error: in is_ancestor, at cp/name-lookup.c:2771 enum T::Color {R, G, B} c; ^ 0x7b285c is_ancestor(tree_node*, tree_node*) ../../gcc-trunk/gcc/cp/name-lookup.c:2770 0x6f1b84 cp_parser_enum_specifier ../../gcc-trunk/gcc/cp/parser.c:16736 0x6df7e5 cp_parser_type_specifier ../../gcc-trunk/gcc/cp/parser.c:15330 0x6f067b cp_parser_decl_specifier_seq ../../gcc-trunk/gcc/cp/parser.c:12324 0x703ef9 cp_parser_member_declaration ../../gcc-trunk/gcc/cp/parser.c:21718 0x6dfa34 cp_parser_member_specification_opt ../../gcc-trunk/gcc/cp/parser.c:21570 0x6dfa34 cp_parser_class_specifier_1 ../../gcc-trunk/gcc/cp/parser.c:20762 0x6dfa34 cp_parser_class_specifier ../../gcc-trunk/gcc/cp/parser.c:20998 0x6dfa34 cp_parser_type_specifier ../../gcc-trunk/gcc/cp/parser.c:15358 0x6f067b cp_parser_decl_specifier_seq ../../gcc-trunk/gcc/cp/parser.c:12324 0x702828 cp_parser_single_declaration ../../gcc-trunk/gcc/cp/parser.c:25124 0x702bbb cp_parser_template_declaration_after_parameters ../../gcc-trunk/gcc/cp/parser.c:24816 0x7037a4 cp_parser_explicit_template_declaration ../../gcc-trunk/gcc/cp/parser.c:25051 0x7037a4 cp_parser_template_declaration_after_export ../../gcc-trunk/gcc/cp/parser.c:25069 0x70c179 cp_parser_declaration ../../gcc-trunk/gcc/cp/parser.c:11691 0x70a53a cp_parser_declaration_seq_opt ../../gcc-trunk/gcc/cp/parser.c:11613 0x70a880 cp_parser_translation_unit ../../gcc-trunk/gcc/cp/parser.c:4169 0x70a880 c_parse_file() ../../gcc-trunk/gcc/cp/parser.c:34599 0x857542 c_common_parse_file() ../../gcc-trunk/gcc/c-family/c-opts.c:1064 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $ -------------------------------- template < typename T > class D { enum T::Color {R, G, B} c; };