https://bugs.llvm.org/show_bug.cgi?id=49106
Bug ID: 49106
Summary: By-value and by-reference parameters should not have a
partial ordering due to constraints
Product: clang
Version: trunk
Hardware: PC
OS: Linux
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 invalid translation unit is accepted by clang:
```
template<typename T>
int f(T);
template<typename T> requires true
int f(T const&);
int i = f(42);
```
See it live: https://godbolt.org/z/Wh41x6
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96333 for more context.
--
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