| Issue |
63292
|
| Summary |
"attribute does not appear on the first declaration" gives wrong line for template specialization
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
abrachet
|
For example:
```
int a();
// CHECK: [[@LINE-1]]:5 note: previous declaration is here
[[clang::internal_linkage]] int a() { return 1; }
template <typename> int b();
// CHECK: [[@LINE+1]]:44 note: previous declaration is here
template<> [[clang::internal_linkage]] int b<int>() { return 1; }
```
The error for b gives the previous declaration to its own line which is not helpful.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs