From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4BA67385DC02; Sat, 11 Apr 2020 10:56:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4BA67385DC02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586602570; bh=b52BSK15eyc7BFLp5hecAH214yK4VQ8dCLz0ENZzuis=; h=From:To:Subject:Date:From; b=eQG5s/RaI19v2Cmd2fSUtjtI+Av6poPAK/T44mo55g/yszloJcYvnGvJPPzZOTVqo PoGJ/PaJGSL+lbGtGnZPxBulH4Lp2mbgktRywq4ayBcg/TmuNsNjcYpsuzV9Dgoo47 cRPc6GbjSChFNhuGtW119RFwJGWEDVRKh37ywWcI= From: "pacoarjonilla at yahoo dot es" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94560] New: ICE on recursive templated alias Date: Sat, 11 Apr 2020 10:56:10 +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: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pacoarjonilla at yahoo dot es 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-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2020 10:56:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94560 Bug ID: 94560 Summary: ICE on recursive templated alias Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pacoarjonilla at yahoo dot es Target Milestone: --- Maybe related to Bug ID 93085 Only on GCC10 with --std=3Dc++17 and --std=3Dc++20 ICE with tuples and variants. Could not replicate with my own types. >>>>>>>>>>>>>>>>>>>>>>>>>>>>> #include template using B =3D std::tuple; using A =3D std::tuple>; int main() { B b; } >>>>>>>>>>>>>>>>>>>>>>>>>>>>> Compiler output: prueba.cc:6:24: error: =E2=80=98A=E2=80=99 was not declared in this scope 6 | using A =3D std::tuple>; | ^ prueba.cc:6:24: error: template argument 1 is invalid prueba.cc:6:25: error: template argument 1 is invalid 6 | using A =3D std::tuple>; | ^~ prueba.cc:6:16: error: =E2=80=98=E2=80=99 in namespace = =E2=80=98std=E2=80=99 does not name a type 6 | using A =3D std::tuple>; | ^~~~~~~~~~~ prueba.cc: In function =E2=80=98int main()=E2=80=99: prueba.cc:10:7: internal compiler error: in alias_ctad_tweaks, at cp/pt.c:2= 8319 10 | B b; | ^ 0x674f3f alias_ctad_tweaks /home/paco/git/gcc/gcc/cp/pt.c:28319 0x674f3f deduction_guides_for /home/paco/git/gcc/gcc/cp/pt.c:28491 0x9f5ccb do_class_deduction /home/paco/git/gcc/gcc/cp/pt.c:28596 0x9f5ccb do_auto_deduction(tree_node*, tree_node*, tree_node*, int, auto_deduction_context, tree_node*, int) /home/paco/git/gcc/gcc/cp/pt.c:28725 0x929e5c cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) /home/paco/git/gcc/gcc/cp/decl.c:7503 0x9d0f69 cp_parser_init_declarator /home/paco/git/gcc/gcc/cp/parser.c:20906 0x9b2422 cp_parser_simple_declaration /home/paco/git/gcc/gcc/cp/parser.c:13731 0x9b418a cp_parser_declaration_statement /home/paco/git/gcc/gcc/cp/parser.c:13163 0x9b4e0d cp_parser_statement /home/paco/git/gcc/gcc/cp/parser.c:11469 0x9b5d38 cp_parser_statement_seq_opt /home/paco/git/gcc/gcc/cp/parser.c:11835 0x9b5e18 cp_parser_compound_statement /home/paco/git/gcc/gcc/cp/parser.c:11785 0x9cd1b5 cp_parser_function_body /home/paco/git/gcc/gcc/cp/parser.c:23059 0x9cd1b5 cp_parser_ctor_initializer_opt_and_function_body /home/paco/git/gcc/gcc/cp/parser.c:23110 0x9d050d cp_parser_function_definition_after_declarator /home/paco/git/gcc/gcc/cp/parser.c:28958 0x9d1589 cp_parser_function_definition_from_specifiers_and_declarator /home/paco/git/gcc/gcc/cp/parser.c:28874 0x9d1589 cp_parser_init_declarator /home/paco/git/gcc/gcc/cp/parser.c:20666 0x9b2422 cp_parser_simple_declaration /home/paco/git/gcc/gcc/cp/parser.c:13731 0x9db752 cp_parser_declaration /home/paco/git/gcc/gcc/cp/parser.c:13430 0x9dbeda cp_parser_translation_unit /home/paco/git/gcc/gcc/cp/parser.c:4731 0x9dbeda c_parse_file() /home/paco/git/gcc/gcc/cp/parser.c:43829 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=