[clang-tools-extra] [clang] [lldb] [c++20] P1907R1: Support for generalized non-type template arguments of scalar type. (PR #78041)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 13 07:41:46 PST 2024
================
@@ -25,7 +25,7 @@ template <int &> struct S {}; // #dr1801-S
S<i> V; // #dr1801-S-i
// cxx98-14-error at -1 {{non-type template argument does not refer to any declaration}}
// cxx98-14-note@#dr1801-S {{template parameter is declared here}}
-// since-cxx17-error@#dr1801-S-i {{non-type template argument refers to subobject '.i'}}
+// cxx17-error@#dr1801-S-i {{non-type template argument refers to subobject '.i'}}
----------------
cor3ntin wrote:
I agree that this restriction no longer exist in the current wording. @zygoloid
https://github.com/llvm/llvm-project/pull/78041
More information about the cfe-commits
mailing list