You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structA
{
~A() {}
};
structB
{
int b = 0;
B(A) {}
};
structC : publicB
{
using B::B;
};
C var = A{};
intmain()
{
return var.b;
}
Building this on Windows produces following error:
lld-link: error: undefined symbol: struct C var
>>> referenced by C:\msys2\tmp\1-93d998.o:(main)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
The compiler invocation is clang++ 1.cpp -fuse-ld=lld (similar error without LLD, using it to show a non-localized message).
Building this on Windows produces following error:
The compiler invocation is
clang++ 1.cpp -fuse-ld=lld
(similar error without LLD, using it to show a non-localized message).Clang version is:
This doesn't happen on Linux or in MinGW-compatibility mode.
Making the variable
static
doesn't change the result. Making itinline
ICEs the compiler:The text was updated successfully, but these errors were encountered: