[Issue 18312] string concatenation with -betterC fails with linker errors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 28 23:48:14 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18312

--- Comment #2 from Mike Franklin <slavo5150 at yahoo.com> ---
> What is the expected result?

If TypeInfo is indeed required to perform string concatenation, then the
compiler should emit a compile-time error by checking the
`global.params.usetypeinfo` flag.  This can be implemented very easily today,
but I think that this is a symptom of a more systematic problem in D.

I'm skeptical that TypeInfo is a necessity for this operation, and ideally
TypeInfo should not be required.  Removing the dependency on TypeInfo would
remove the reference to '_D12TypeInfo_Aya6__initZ'.

The runtime hook `_d_arraycatnTx` could probably be replaced with a template,
which would result in a compile-time error saying that it can't
find/instantiate the template.

--


More information about the Digitalmars-d-bugs mailing list