[PATCH] D44842: Add Parameters to DW_AT_name Attribute of Template Variables
Matthew Voss via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 3 10:09:57 PDT 2018
ormris added a comment.
@jingham
Doesn't look like it works.
$ cat repro.cpp
template <typename T> T crazy = T();
int main(void) {
crazy<int> = 5;
return crazy<int>;
}
$ clang++ -g repro.cpp
$ lldb a.out
...
(lldb) frame variable
(lldb) expr crazy
error: use of undeclared identifier 'crazy'
error: 1 errors parsing expression
(lldb) expr crazy<int>
error: use of undeclared identifier 'crazy'
error: expected '(' for function-style cast or type construction
error: expected expression
error: 3 errors parsing expression
(lldb)
Repository:
rC Clang
https://reviews.llvm.org/D44842
More information about the cfe-commits
mailing list