Closed vova7878 closed 2 weeks ago
I did some testing, the bug has been present since Clang 6.0.0
@llvm/issue-subscribers-clang-frontend
Author: Vladimir Kozelkov (vova7878)
Looks like no crash on trunk: https://godbolt.org/z/3TYqEYsqT
Also looks like other implementations reject this code.
Also looks like other implementations reject this code.
The code is completely incorrect, but should not cause a crash
Also looks like other implementations reject this code.
The code is completely incorrect, but should not cause a crash
Just wanted to confirm that was expected. So I will close this since it is fixed in trunk.
Code causing the crash: https://godbolt.org/z/GYnh4En78
Under #if there are two variants of code that cause different error messages
Clang can't handle code like this:
template <...> using ... = struct __attribute__((packed)) alignas(...) {...};
Without a template compiler just says the code is incorrect