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
LDC - the LLVM D compiler (1.24.0):
based on DMD v2.094.1 and LLVM 11.0.0
built with LDC - the LLVM D compiler (1.24.0)
Default target: x86_64-unknown-linux-gnu
...
A minimal program, compiled with -betterC:
extern(C) int main(){
int[] foo = [1];
return0;
}
Yields the error message:
Error: TypeInfo cannot be used with -betterC
With dmd, the error message is:
bug.d(2): Error: TypeInfo cannot be used with -betterC
In other words, the error message indicates file and line.
This can be quite frustrating in larger source files.
Output of
ldc2 --version
:A minimal program, compiled with -betterC:
Yields the error message:
With dmd, the error message is:
In other words, the error message indicates file and line.
This can be quite frustrating in larger source files.
It looks like this happens because a default constructed
Loc
is passed intogetOrCreateTypeInfoDeclaration
at https://github.com/ldc-developers/ldc/blob/master/gen/llvmhelpers.cpp#L1200The text was updated successfully, but these errors were encountered: