Probably trivial, but VERY frustrating compiler bug
Steven Schveighoffer
schveiguy at gmail.com
Fri Aug 14 03:56:38 UTC 2020
On 8/13/20 6:20 PM, Adam D. Ruppe 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.
>
> that might be the real bug perhaps it just called toChars when it should
> have called toMangle or whatever the function is called.
What is the correct way to get a string representation of a type if not
T.stringof? This is inside Phobos, not DMD.
-Steve
More information about the Digitalmars-d
mailing list