https://bugs.llvm.org/show_bug.cgi?id=46684
Bug ID: 46684
Summary: Constraints and explicit template instantiation
Product: clang
Version: 10.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
The following code does not compile in all of clang 10.0.0, gcc 10.1, and msvc
19.24:
template <int N>
struct A {
void g() requires (N == 3) {}
void f() requires (N == 3) { g(); }
};
template struct A<2>;
The error is "error : invalid reference to function 'g': constraints not
satisfied".
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs