Issue |
96034
|
Summary |
[[clang::lifetimebound]] is missing if the function parameter doesn't have a name.
|
Labels |
clang:frontend
|
Assignees |
|
Reporter |
hokein
|
See the example:
```
int* good(const int& abc[[clang::lifetimebound]]);
int* bad(const int& [[clang::lifetimebound]]);
```
The AST looks like:
```
-FunctionDecl ... good 'int *(const int &)'
| `-ParmVarDecl ... abc 'const int &'
| `-LifetimeBoundAttr
`-FunctionDecl ... bad 'int *(const int &)'
`-ParmVarDecl ... 'const int &'
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs