https://issues.dlang.org/show_bug.cgi?id=18312
Issue ID: 18312
Summary: string concatenation with -betterC fails with linker
errors
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
void main()
{
scope string s;
s = "`" ~ s ~ "`";
}
Compile with the -betterC flag
onlineapp.d:4: error: undefined reference to '_D12TypeInfo_Aya6__initZ'
onlineapp.d:4: error: undefined reference to '_d_arraycatnTX'
onlineapp.o:onlineapp.d:function main: error: undefined reference to
'_d_run_main'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
--