Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit b1960e2

Browse files
committed
[PR25661] Revert part of r217213 according to r254323.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254346 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent bda2590 commit b1960e2

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

test/CXX/drs/dr5xx.cpp

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -519,23 +519,12 @@ namespace dr546 { // dr546: yes
519519
}
520520

521521
namespace dr547 { // dr547: yes
522-
// When targeting the MS x86 ABI, the type of a member function includes a
523-
// __thiscall qualifier. This is non-conforming, but we still implement
524-
// the intent of dr547
525-
#if defined(_M_IX86) || (defined(__MINGW32__) && !defined(__MINGW64__))
526-
#define THISCALL __thiscall
527-
#else
528-
#define THISCALL
529-
#endif
530-
531522
template<typename T> struct X;
532-
template<typename T> struct X<THISCALL T() const> {};
523+
template<typename T> struct X<T() const> {};
533524
template<typename T, typename C> X<T> f(T C::*) { return X<T>(); }
534525

535526
struct S { void f() const; };
536-
X<THISCALL void() const> x = f(&S::f);
537-
538-
#undef THISCALL
527+
X<void() const> x = f(&S::f);
539528
}
540529

541530
namespace dr548 { // dr548: dup 482

0 commit comments

Comments
 (0)