This is an archive of the discontinued LLVM Phabricator instance.

[C++20] [Modules] Namespace Declaration shouldn't have module linkage
ClosedPublic

Authored by ChuanqiXu on Dec 5 2021, 9:55 PM.

Details

Summary

According to https://eel.is/c++draft/basic.namespace.general#2, a namespace declaration shouldn't have a module linkage.

Further more, without this patch, the compiler would crash for the test in assertion enabled build due to inconsistent linkage for redeclaration for namespaces.

Test Plan: check-all

Diff Detail

Event Timeline

ChuanqiXu requested review of this revision.Dec 5 2021, 9:55 PM
ChuanqiXu created this revision.
rsmith accepted this revision.Dec 7 2021, 6:32 PM
This revision is now accepted and ready to land.Dec 7 2021, 6:32 PM
This revision was landed with ongoing or failed builds.Dec 7 2021, 9:54 PM
This revision was automatically updated to reflect the committed changes.