[PATCH] D19479: 26748 - clang-cl fails to compile atlctrlw.h header from WTL

Andrew V. Tischenko via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 25 04:36:32 PDT 2016


avt77 created this revision.
avt77 added a reviewer: rnk.
avt77 added a subscriber: cfe-commits.

This is the first patch to fix clang-cl incompatibility prohibited to compile the header file. The patch covers the following case:

class CCommandBarCtrlBase {
public:
  typedef int CMsgHookMap;
};

template <class T>
class CCommandBarCtrlImpl : public T {
public:
  void foo() {
    void *p = new CMsgHookMap; // "new typename T::CMsgHookMap" works fine
  }
};

void bar() {
  CCommandBarCtrlImpl<CCommandBarCtrlBase> x;
  x.foo();
}

http://reviews.llvm.org/D19479

Files:
  include/clang/Sema/Sema.h
  lib/Parse/ParseDecl.cpp
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaLookup.cpp
  test/Sema/dtp-lookup-in-base-classes.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19479.54831.patch
Type: text/x-patch
Size: 7747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160425/8f307269/attachment.bin>


More information about the cfe-commits mailing list