From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B257F398305F; Thu, 10 Sep 2020 22:18:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B257F398305F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599776294; bh=pV7v8CbgSHghxq4tyXCGQ3/9VjLOqUD/IAPsi0xHqV8=; h=From:To:Subject:Date:From; b=s1O6QDnDJmfa6BtjaH7ODY5+y74d+INFEczfKNROwRKcul+vs60945940a0WV9I4+ 5N4q7YWWsq6UQC+GJZbpbZdOOU/Xc1vumE+DrSgvqOIm43cGpf5D/W2/vthi9nrrcQ 67An4veE3/QJVSmn+3boAYFfDZFaRK/PmN4vdqHQ= From: "mateusz.pusz at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/97014] New: Class NTTPs not demangled in the compilation error Date: Thu, 10 Sep 2020 22:18:14 +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: mateusz.pusz 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: Thu, 10 Sep 2020 22:18:14 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97014 Bug ID: 97014 Summary: Class NTTPs not demangled in the compilation error Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mateusz.pusz at gmail dot com Target Milestone: --- The following code: ``` struct ratio { int num; int den; }; template struct X { static constexpr auto ratio =3D R; }; template concept positive =3D R.num > 0 && R.den > 0; template concept ratio_positive =3D positive; void foo(ratio_positive auto x) {} void boo() { foo(X()); } ``` produces the following error with `::_ZTAXtl5ratioLin1ELi2EEE` not demangle= d to `ratio{-1, 2}` in many places: ``` : In function 'void boo()': :21:24: error: no matching function for call to 'foo(X)' 21 | foo(X()); | ^ :17:6: note: candidate: 'template requires=20 ratio_positive void foo(auto:1)' 17 | void foo(ratio_positive auto x) {} | ^~~ :17:6: note: template argument deduction/substitution failed: :17:6: note: constraints not satisfied : In substitution of 'template requires=20 ratio_positive void foo(auto:1) [with auto:1 =3D X]': :21:24: required from here :12:9: required for the satisfaction of 'positive' [wit= h T =3D X<::_ZTAXtl5ratioLin1ELi2EEE>] :15:9: required for the satisfaction of 'ratio_positive' [with auto:1 =3D X<::_ZTAXtl5ratioLin1ELi2EEE>] :12:26: note: the expression '((const ratio)R).num > 0 [with R =3D X<::_ZTAXtl5ratioLin1ELi2EEE>::ratio]' evaluated to 'false' 12 | concept positive =3D R.num > 0 && R.den > 0; | ~~~~~~^~~ Compiler returned: 1 ```=