[PATCH] D110216: [clang] retain type sugar in auto / template argument deduction
Vassil Vassilev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 30 00:06:31 PDT 2021
v.g.vassilev added a comment.
Thanks for working on this! How hard would it be to support:
using size_t = __SIZE_TYPE__;
template<typename T> struct Id { typedef T type; };
int main() {
struct S {} s;
Id<size_t>::type f = s; // just 'unsigned long', 'size_t' sugar has been lost
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110216/new/
https://reviews.llvm.org/D110216
More information about the cfe-commits
mailing list