From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8FA653858020; Tue, 20 Apr 2021 20:40:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8FA653858020 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98964] FAIL: g++.dg/cpp0x/constexpr-52830.C -std=c++14 (test for excess errors) Date: Tue, 20 Apr 2021 20:40:04 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com 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: cf_gcchost component everconfirmed cf_gcctarget cf_gccbuild bug_status cf_reconfirmed_on 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-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: Tue, 20 Apr 2021 20:40:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98964 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Host|hppa-unknown-linux-gnu | Component|testsuite |c++ Ever confirmed|0 |1 Target|hppa-unknown-linux-gnu | Build|hppa-unknown-linux-gnu | Status|UNCONFIRMED |NEW Last reconfirmed| |2021-04-20 --- Comment #1 from H.J. Lu --- On Linux/x86-64, r11-8260 gave ./releases/gcc-11/r11-8260/bld/gcc/xgcc -B./releases/gcc-11/r11-8260/bld/gc= c/ -S constexpr-52830.C=20 constexpr-52830.C:27:1: error: no declaration matches ??void foo::func(T&&, typename eif::value>::type*)?? 27 | foo:: | ^~~ constexpr-52830.C:21:8: note: candidate is: ??template void foo::func(T&&, typename eif::value>::type*)?? 21 | void func(T && a, | ^~~~ constexpr-52830.C:19:8: note: ??struct foo?? defined here 19 | struct foo { | ^~~ gnu-skx-1:pts/4[56]> ./releases/gcc-11/r11-8254/bld/gcc/xgcc -B./releases/gcc-11/r11-8254/bld/gcc/ -S constexpr-52830.C constexpr-52830.C:29:60: internal compiler error: canonical types differ for identical types ??eif::value>?? and ??eif::value>?? 29 | typename eif::value>::type * ) | ^ 0xe0117d comptypes(tree_node*, tree_node*, int) ../../../gcc/gcc/cp/typeck.c:1558 0xe01353 same_type_ignoring_top_level_qualifiers_p(tree_node*, tree_node*) ../../../gcc/gcc/cp/typeck.c:1594 0xe005e0 structural_comptypes ../../../gcc/gcc/cp/typeck.c:1443 0xe010c4 comptypes(tree_node*, tree_node*, int) ../../../gcc/gcc/cp/typeck.c:1547 0xe0027e structural_comptypes ../../../gcc/gcc/cp/typeck.c:1401 0xe010c4 comptypes(tree_node*, tree_node*, int) ../../../gcc/gcc/cp/typeck.c:1547 0xe015d8 compparms(tree_node const*, tree_node const*) ../../../gcc/gcc/cp/typeck.c:1699 0xb72130 check_classfn(tree_node*, tree_node*, tree_node*) ../../../gcc/gcc/cp/decl2.c:686 0xb47ae5 grokfndecl ../../../gcc/gcc/cp/decl.c:10109 0xb5445c grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) ../../../gcc/gcc/cp/decl.c:13924 0xb6274b start_function(cp_decl_specifier_seq*, cp_declarator const*, tree_node*) ../../../gcc/gcc/cp/decl.c:16859 0xcbe4d3 cp_parser_function_definition_from_specifiers_and_declarator ../../../gcc/gcc/cp/parser.c:29940 0xcad696 cp_parser_init_declarator ../../../gcc/gcc/cp/parser.c:21653 0xcbfdf6 cp_parser_single_declaration ../../../gcc/gcc/cp/parser.c:30564 0xcbea7b cp_parser_template_declaration_after_parameters ../../../gcc/gcc/cp/parser.c:30136 0xcbf9ef cp_parser_explicit_template_declaration ../../../gcc/gcc/cp/parser.c:30402 0xcbfa49 cp_parser_template_declaration_after_export ../../../gcc/gcc/cp/parser.c:30421 0xca3912 cp_parser_template_declaration ../../../gcc/gcc/cp/parser.c:16609 0xc9f1e0 cp_parser_declaration ../../../gcc/gcc/cp/parser.c:14085 0xc9f5f3 cp_parser_toplevel_declaration ../../../gcc/gcc/cp/parser.c:14183 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=