Closed
Description
This currently just seems to be ignored (the name is not mangled).
It is explicitly disallowed by https://eel.is/c++draft/basic.start.main#3.sentence-5
The
main
function shall not be declared with a linkage-specification.
This includes
extern "C++" { int main(); }
This is also technically ill-formed
extern "C" int main();
but it seems to be used in some places:
So this should probably just be a warning, not an error.