dcompute - Error: unrecognized `pragma(LDC_intrinsic)
Nicholas Wilson
iamthewilsonator at hotmail.com
Thu Feb 28 10:37:22 UTC 2019
On Thursday, 28 February 2019 at 09:58:35 UTC, Michelle Long
wrote:
> I've included it in Visual D as di and it seems not to add it
> to the include line...
>
> Is it in any way possible that it being an di file would allow
> that? Seems that it is an LDC issue though but LDC has some
> usage of it I believe and it works fine.
>
> Could it be a LDC version? Or do I need to include something to
> make it work? Seems like it would be part of the compiler
> itself.
(I'm on cold and flu meds so apologies if this doesn't make sense)
It should be on the atuoimport path of LDC as that file had
others
(https://github.com/ldc-developers/druntime/tree/ldc/src/ldc) are
part of LDC's druntime which should be imported by ldc's .conf
file, it won't show up on the command line unless you do
something (... brain not working properly...).
Irrespective of all that, the error comes from
https://github.com/ldc-developers/ldc/blob/f5a5324773484447953746725ea455d2827e6004/dmd/dsymbolsem.d#L1862
which should never happen because this branch should be taken
https://github.com/ldc-developers/ldc/blob/f5a5324773484447953746725ea455d2827e6004/dmd/dsymbolsem.d#L1807
because that pragma is explicitly checked for here
https://github.com/ldc-developers/ldc/blob/187d8198e63564c633f22f2ef4db2a31a8a600ce/gen/pragma.cpp#L110
More information about the Digitalmars-d-learn
mailing list