[llvm-bugs] [Bug 34318] New: pretty-printed pointer-to-member-function types include inferred '__attribute__((thiscall))' when targeting MSVC
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 24 18:59:55 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34318
Bug ID: 34318
Summary: pretty-printed pointer-to-member-function types
include inferred '__attribute__((thiscall))' when
targeting MSVC
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: llvm-bugs at lists.llvm.org, rnk at google.com
Example:
struct A;
void (A::*f)() = 5;
... produces:
error: cannot initialize a variable of type 'void (A::*)()
__attribute__((thiscall))' with an rvalue of type 'int'
Note the inferred "__attribute__((thiscall))" is included in the type name. It
should not be; we should be printing the type as written.
--
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/20170825/8aa71b8c/attachment.html>
More information about the llvm-bugs
mailing list