llvm-project
llvm-project copied to clipboard
Clang misses -Wsign-conversion warning in a simple code
| Bugzilla Link | 46171 |
| Version | trunk |
| OS | All |
| CC | @dwblaikie,@DougGregor,@zygoloid |
Extended Description
$cat test.cc
int main(){
int a = 1;
int array[a];
return 0;
}
in GCC
$g++ -Wsign-conversion test.cc
But there is no warnings in clang-trunk.
https://godbolt.org/z/xCQiuT