[llvm-bugs] [Bug 51855] New: Invalid error with declspec(property..) and templates
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Sep 14 09:25:31 PDT 2021
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: unassignedclangbugs at nondot.org
Reporter: jeroen.dobbelaere at synopsys.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210914/6f59adab/attachment.html>
More information about the llvm-bugs
mailing list