[cfe-commits] [PATCH] Implement C++11 alias templates
Richard Smith
richard at metafoo.co.uk
Thu Apr 28 14:02:12 PDT 2011
Hi,
The attached patch implements C++11 alias templates.
I've added a new Decl node for alias templates: TypeAliasTemplateDecl.
Alias template specialization types also need to track the
non-canonicalized aliased type, so I've extended
TemplateSpecializationType to store a non-canonical QualType in the case
where it refers to an alias template.
I hit into a couple of issues with the FDIS while implementing this:
* There is no obvious restriction that a redeclaration of an alias
template must use an equivalent type.
* [temp.alias]p3 describes two situations which I believe are impossible
now that the point of declaration of an alias template has been moved to
the semicolon.
Please review!
Thanks,
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-alias-templates.diff
Type: text/x-patch
Size: 97303 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110428/9eca1d9e/attachment.bin>
More information about the cfe-commits
mailing list