Hi,
consider the following code (Godbolt-Link):
C++
module;
namespace vk {
constexpr int ApiVersion = 1;
}
export module foo;
export {
using vk::ApiVersion;
}
This failed with: error: using declaration referring to 'ApiVersion' with internal linkage cannot be exported
.
Is this a bug or expected behavior? If this is by design how should the variable be exported?
Thanks!