-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed as duplicate of#83462
Copy link
Labels
clang: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 analyzerclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"diverges-from:gccDoes the clang frontend diverge from gcc on this issueDoes the clang frontend diverge from gcc on this issueduplicateResolved as duplicateResolved as duplicate
Description
// main.cpp
[[gnu::abi_tag("[[something]]")]]
int get_int() {
return 0;
}
int main() {
int ret = get_int();
return 0;
}with g++
$> g++ test.cpp
test.cpp:3:13: error: arguments to the ‘abi_tag’ attribute must contain valid identifiers
3 | int get_int() {
| ^
test.cpp:3:13: note: ‘[’ is not a valid first character for an identifier
with clang (this should be an error). As I assume we need to match gcc as it is a gnu extension
$> clang++ test.cpp
$>
Metadata
Metadata
Assignees
Labels
clang: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 analyzerclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"diverges-from:gccDoes the clang frontend diverge from gcc on this issueDoes the clang frontend diverge from gcc on this issueduplicateResolved as duplicateResolved as duplicate