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: unassignedclangb...@nondot.org
          Reporter: richard-l...@metafoo.co.uk
                CC: llvm-bugs@lists.llvm.org, r...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to