From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7C616383F86F; Sun, 14 Jun 2020 12:48:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C616383F86F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592138929; bh=vlRD2GMPzRLR7x0AmW6lo0Z0iNgF16hEU/4qnobCPBE=; h=From:To:Subject:Date:From; b=aM2wNBmAO/K0ka870PV7XZy6F1e6p+A5YMi7uokaLqm/fMj8K8dDS3mvlQpgctJq/ Yhk0F3Dl25UtImIoK/Vm/Vhc56Wo8rwfG/rRy0vCUz5OzEl6WpVJHoEdQ5/kQCm1x5 jzlJOCNvntbZu1Es3AEFQQfKf4HnEedmcGntD6Wc= From: "haoxintu at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95672] New: ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:584 Date: Sun, 14 Jun 2020 12:48:49 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: haoxintu at gmail 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: 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: Sun, 14 Jun 2020 12:48:49 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95672 Bug ID: 95672 Summary: ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:584 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- $cat bug.cc struct g_class : decltype (auto) ... { } ; $g++ bug.cc bug.cc:1:35: internal compiler error: in cxx_incomplete_type_diagnostic, at cp/typeck2.c:584 1 | struct g_class : decltype (auto) ... { } ; | ^~~ 0x5cef74 cxx_incomplete_type_diagnostic(unsigned int, tree_node const*, tree_node const*, diagnostic_t) ../../gcc/cp/typeck2.c:584 0x77b9af cxx_incomplete_type_diagnostic(tree_node const*, tree_node const*, diagnostic_t) ../../gcc/cp/cp-tree.h:7705 0x77b9af complete_type_or_maybe_complain(tree_node*, tree_node*, int) ../../gcc/cp/typeck.c:156 0x77b9af complete_type_or_else(tree_node*, tree_node*) ../../gcc/cp/typeck.c:166 0x685881 xref_basetypes(tree_node*, tree_node*) ../../gcc/cp/decl.c:15099 0x6edfe9 cp_parser_class_head ../../gcc/cp/parser.c:24717 0x6edfe9 cp_parser_class_specifier_1 ../../gcc/cp/parser.c:23874 0x6ee273 cp_parser_class_specifier ../../gcc/cp/parser.c:24248 0x6ee273 cp_parser_type_specifier ../../gcc/cp/parser.c:17762 0x6ef092 cp_parser_decl_specifier_seq ../../gcc/cp/parser.c:14410 0x6efbb1 cp_parser_simple_declaration ../../gcc/cp/parser.c:13664 0x7159c6 cp_parser_declaration ../../gcc/cp/parser.c:13484 0x7160b4 cp_parser_translation_unit ../../gcc/cp/parser.c:4761 0x7160b4 c_parse_file() ../../gcc/cp/parser.c:44034 0x7de74b c_common_parse_file() ../../gcc/c-family/c-opts.c:1190 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $g++ --version g++ (GCC) 11.0.0 20200605 (experimental) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.=