[all-commits] [llvm/llvm-project] 851874: Fix type printing of array template args
Pratyush Das via All-commits
all-commits at lists.llvm.org
Sat May 1 11:53:15 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8518742104ab075296722ef6151f65aee7a0646d
https://github.com/llvm/llvm-project/commit/8518742104ab075296722ef6151f65aee7a0646d
Author: Pratyush Das <reikdas at gmail.com>
Date: 2021-05-01 (Sat, 01 May 2021)
Changed paths:
M clang/lib/AST/TemplateBase.cpp
M clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp
M clang/test/SemaTemplate/temp_arg_nontype_cxx11.cpp
Log Message:
-----------
Fix type printing of array template args
The code example:
```
constexpr const char kEta[] = "Eta";
template <const char*, typename T> class Column {};
using quick = Column<kEta,double>;
void lookup() {
quick c1;
c1.ls();
}
```
emits error: no member named 'ls' in 'Column<&kEta, double>'. The patch fixes
the printed type name by not printing the ampersand for array types.
Differential Revision: https://reviews.llvm.org/D36368
More information about the All-commits
mailing list