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

Commit

Permalink
[PR25661] Revert part of r217213 according to r254323.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254346 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chapuni committed Nov 30, 2015
1 parent bda2590 commit b1960e2
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions test/CXX/drs/dr5xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,23 +519,12 @@ namespace dr546 { // dr546: yes
}

namespace dr547 { // dr547: yes
// When targeting the MS x86 ABI, the type of a member function includes a
// __thiscall qualifier. This is non-conforming, but we still implement
// the intent of dr547
#if defined(_M_IX86) || (defined(__MINGW32__) && !defined(__MINGW64__))
#define THISCALL __thiscall
#else
#define THISCALL
#endif

template<typename T> struct X;
template<typename T> struct X<THISCALL T() const> {};
template<typename T> struct X<T() const> {};
template<typename T, typename C> X<T> f(T C::*) { return X<T>(); }

struct S { void f() const; };
X<THISCALL void() const> x = f(&S::f);

#undef THISCALL
X<void() const> x = f(&S::f);
}

namespace dr548 { // dr548: dup 482
Expand Down

0 comments on commit b1960e2

Please sign in to comment.