[Issue 20802] New: [REG2.088.0] Link failure with writefln
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 6 20:18:45 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20802
Issue ID: 20802
Summary: [REG2.088.0] Link failure with writefln
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: tim.dlang at t-online.de
The following code worked with 2.087.1, but doesn't link since 2.088.0:
//////////////////// test.d ///////////////////
import std.uni, std.stdio;
class C
{
size_t number;
}
int main()
{
C inst;
mixin({
while(false)
{
dchar current;
CodepointSet(current);
}
return "";
}());
writefln("%d %d %d", inst.number, C.sizeof, inst.number );
return 0;
}
///////////////////////////////////////////////
With 2.088.0 it produces the following link error:
/usr/bin/ld: test.o: in function
`_D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk':
test.d:(.text._D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk[_D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk]+0xd6):
undefined reference to
`_D3std6format__T9getNthIntVAyaa13_696e7465676572207769647468TmTmTmZQBzFNaNfkmmmZi'
/usr/bin/ld:
test.d:(.text._D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk[_D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk]+0x16f):
undefined reference to
`_D3std6format__T9getNthIntVAyaa13_696e7465676572207769647468TmTmTmZQBzFNaNfkmmmZi'
/usr/bin/ld:
test.d:(.text._D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk[_D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk]+0x1c6):
undefined reference to
`_D3std6format__T9getNthIntVAyaa17_696e746567657220707265636973696f6eTmTmTmZQChFNaNfkmmmZi'
/usr/bin/ld:
test.d:(.text._D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk[_D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk]+0x254):
undefined reference to
`_D3std6format__T9getNthIntVAyaa17_696e746567657220707265636973696f6eTmTmTmZQChFNaNfkmmmZi'
/usr/bin/ld:
test.d:(.text._D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk[_D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk]+0x2a0):
undefined reference to
`_D3std6format__T9getNthIntVAyaa21_736570617261746f72206469676974207769647468TmTmTmZQCpFNaNfkmmmZi'
/usr/bin/ld:
test.d:(.text._D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk[_D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTmTmTmZQCiFNfKQByMxAammmZk]+0x2c9):
undefined reference to
`_D3std6format__T6getNthVAyaa19_736570617261746f7220636861726163746572SQCq6traits10isSomeCharTwTmTmTmZQDhFNaNfkmmmZw'
collect2: Fehler: ld gab 1 als Ende-Status zurück
It may be related to issue 17155, but since it was introduced in a different
release I have created a separate issue.
--
More information about the Digitalmars-d-bugs
mailing list