From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BB2143858D32; Mon, 9 Oct 2023 22:24:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB2143858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696890294; bh=F4vDDcPnEcDkWspH5Q3BRKxc7zG7Tn/RzIGh1o0VcUM=; h=From:To:Subject:Date:From; b=hop52WDNSHPEIONZ2gQeArCwr5+WGmT5RMeeBjHHcnJSa2rxXR/n8g4VqB5WucH1J G47RfojpDf4pyEOX3Xjjp79GCeqfvBzBQBjVc2w0Vz4LCjbKDCZrwopfT5kIyC6GMA Ww3BIGalQAl7Hk+62HGWQwcZvjeJCfc7ikPaK2IA= From: "jeanmichael.celerier at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111748] New: GCC does not understand partial ordering between non-constrained and constrained templates for specialization Date: Mon, 09 Oct 2023 22:24:54 +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: 13.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jeanmichael.celerier 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111748 Bug ID: 111748 Summary: GCC does not understand partial ordering between non-constrained and constrained templates for specialization Product: gcc Version: 13.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jeanmichael.celerier at gmail dot com Target Milestone: --- Consider:=20 #include template void foo() { } template=20 void foo() { } template<>=20 void foo() { } int main() { foo(); } According to the answers I got in https://stackoverflow.com/questions/77261= 120/ GCC should be able to compile this code, yet it fails due to a supposed ambiguity between=20 template void foo() { } and template=20 void foo() { } as the base of foo=