[PATCH] Fix core-DR1755 & llvm-PR17294 & PR16906 - partial specializations of class member templates

Faisal Vali faisalv at yahoo.com
Thu May 8 20:42:01 PDT 2014


Have partial specializations of variable templates behave similarly to the class partial specializations.
  - merges some of the logic of dealing with partial specializations
  - member variable templates can be explicitly specialized as primary templates or partial specializations as long as the type does not change or the value has not been used.

Will appreciate any feedback!
thanks

http://reviews.llvm.org/D3445

Files:
  include/clang/AST/DeclTemplate.h
  include/clang/Sema/Sema.h
  include/clang/Sema/Template.h
  lib/AST/DeclTemplate.cpp
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaExpr.cpp
  lib/Sema/SemaTemplate.cpp
  lib/Sema/SemaTemplateDeduction.cpp
  lib/Sema/SemaTemplateInstantiate.cpp
  lib/Sema/SemaTemplateInstantiateDecl.cpp
  test/CXX/temp/temp.decls/temp.class.spec/p6.cpp
  test/SemaTemplate/member-templates.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3445.9236.patch
Type: text/x-patch
Size: 113413 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140509/d3e76996/attachment.bin>


More information about the cfe-commits mailing list