https://bugs.llvm.org/show_bug.cgi?id=51855
Bug ID: 51855
Summary: Invalid error with declspec(property..) and templates
Product: clang
Version: 12.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Created attachment 25254
--> https://bugs.llvm.org/attachment.cgi?id=25254&action=edit
test01.cpp
The mere addition of an unrelated
F operator*=(F& lhs, int rhs) { return lhs; }
results in a compilation error related to __declspec(property) and templates:
<source>:32:17: error: invalid operands to binary expression ('<pseudo-object
type>' and 'int')
tmp.theData *= 2;
~~~~~~~~~~~ ^ ~
<source>:38:11: note: in instantiation of function template specialization
'fum<S>' requested here
return fum<S>();
^
See https://www.godbolt.org/z/KErjj7qET for a reproduction.
(or compile the attached file with '-O3 -fms-extensions'
--
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