Repository navigation
Linkage of classes in unnamed namespaces in Microsoft mode #287
dgrunwald-qt
started this conversation in
General
Replies: 1 comment
|
I did some tests with MSVC: namespace {
void foo() {}
class C{};
}
static void bar() {}
template<auto T>
void tmpl() {}
template<typename T>
void tmpl2() {}
void (*p1)() = tmpl<foo>;
void (*p2)() = tmpl<bar>;
void (*p3)() = tmpl2<C>;Via
So I'm not sure why [EDGcpfe/27743] used 1922 when it looks like this change only happened in 1928. But in any case, there's a bug: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
[EDGcpfe/27743] says:
However that change seems to apply only to variables/functions. Class types in unnamed namespaces still have external linkage with microsoft_version >= 1922. Is that intentional, or was this code path simply forgotten in the [EDGcpfe/27743] change?
All reactions