What is the expected error output?

In this Rust Issue page, the author indicates there is a crash in llvm that need to be fixed, and I have provided my findings in the follow-up comment. I am asking here for your opinions. What should be the Rust Compiler's behavior for this issue? Usually, common linkage only allows global variables that are not constants and are zero-initialized. Should we make the RustC frontend detect the invalid declaration beforehand, or should we make this test case pass by removing the common attribute in IR (such as the example C program I posted in that issue page)? Thank you!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.