majnemer added a comment. It would be good to have a test for the variable template case: template <typename T> T x; auto g() { return x<int __unaligned *>; } should mangle to `??$x at PEFAH@@3PEFAHEFA` http://reviews.llvm.org/D19654