Probably trivial, but VERY frustrating compiler bug
H. S. Teoh
hsteoh at quickfur.ath.cx
Thu Aug 13 22:33:04 UTC 2020
On Thu, Aug 13, 2020 at 10:20:19PM +0000, Adam D. Ruppe via Digitalmars-d wrote:
> On Thursday, 13 August 2020 at 22:14:15 UTC, H. S. Teoh wrote:
> > In a nutshell: the exact .stringof of certain function symbols
> > changes depending on which overload was processed first.
>
> wait why the heck is it using .stringof at all? This inside dmd
> itself? I know it uses mangle toChars in places but the stringof thing
> should be for user diagnostics only, no internal use.
[...]
Well, Phobos has a unittest in std.format that relies on the exact
output of .stringof.
Come to think of it, maybe we should just kill that unittest with fire.
>:-(
T
--
He who does not appreciate the beauty of language is not worthy to bemoan its flaws.
More information about the Digitalmars-d
mailing list