]> granicus.if.org Git - clang/commit
[MS Compat] Adjust thiscall to cdecl when deducing template arguments
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 30 Nov 2015 20:34:28 +0000 (20:34 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 30 Nov 2015 20:34:28 +0000 (20:34 +0000)
commite63176229a74ea43a824d1d55b826aa71345305e
treeece2a30b31a0e12a059178275e40ce861c3b7c3f
parent34c87211f9f1059a90ecf0ad1323d38335e8b19a
[MS Compat] Adjust thiscall to cdecl when deducing template arguments

Function types can be extracted from member pointer types.
However, the type is not appropriate without first adjusting the calling
convention.

This fixes PR25661.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254323 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateDeduction.cpp
test/SemaCXX/calling-conv-compat.cpp