- 
                Notifications
    
You must be signed in to change notification settings  - Fork 15.1k
 
Closed
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 | 39369 | 
| Version | trunk | 
| OS | Linux | 
| CC | @AaronBallman,@dwblaikie,@zygoloid | 
Extended Description
#include <stdio.h>
enum class Enum : unsigned short {
One,
};
void test(Enum e) {
printf("0x%04hx", e);
}
gcc:
Clang is fine with that.
Who is wrong?
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