https://bugs.llvm.org/show_bug.cgi?id=51399
Bug ID: 51399
Summary: Failed to compile expression with constant operator=()
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++17
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
The following simple code that works on gcc(and msvc too) will not compile with
clang:
https://godbolt.org/z/zE54xa1rP
What's interesting:
1. This works good when i replace operator= to operator+ or some other operator
2. This also works good when i wrap expression name="degrees" into parentheses,
for example:
field_t<(name="degrees")> degrees;
--
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