-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Closed
Copy link
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer
Description
| Bugzilla Link | 17585 |
| Version | unspecified |
| OS | Linux |
| CC | @DougGregor,@zygoloid |
Extended Description
consider:
void foo() {
template <typename> int i;
}we issue:
error: expected expressiongcc provides a better error:
error: a template declaration cannot appear at block scopeanother case:
void foo() {
struct S { template <typename> int i; };
}we issue:
error: member 'i' declared as a templategcc provides:
invalid declaration of member template in local classThese plain english messages are very nice, we should do something similar.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer