[PATCH] Fix declaring class template methods with an attributed typedef

Reid Kleckner rnk at google.com
Fri Jul 12 12:42:10 PDT 2013


VisitFunctionDecl had some logic for attempting to handle this case
which I reused for class template methods.  Instantiation still fails,
but at least now clang doesn't crash.

With AttributedTypes for these function attributes, we should be able to
make this work without losing the typedef sugar.

http://llvm-reviews.chandlerc.com/D1135

Files:
  lib/Sema/SemaTemplateInstantiate.cpp
  lib/Sema/SemaTemplateInstantiateDecl.cpp
  test/SemaCXX/decl-microsoft-call-conv.cpp
  test/SemaTemplate/instantiate-function-params.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1135.1.patch
Type: text/x-patch
Size: 11369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130712/f4223312/attachment.bin>


More information about the cfe-commits mailing list