[Issue 15936] misleading error message about @disable where there is none

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 3 18:30:51 PDT 2016


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

Mathias Lang <mathias.lang at sociomantic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mathias.lang at sociomantic.co
                   |                            |m
           Assignee|nobody at puremagic.com        |mathias.lang at sociomantic.co
                   |                            |m

--- Comment #1 from Mathias Lang <mathias.lang at sociomantic.com> ---
Yeah that's a compiler implementation detail. DMD tries to instantiate the code
with gagging on, and on error, it just marks it as '@disable'd.
For reference, the guilty code is
https://github.com/dlang/dmd/blob/87ce5f860b9b8c4a9280e9d9d8643ac6a0df7bbd/src/clone.d#L319-L324

--


More information about the Digitalmars-d-bugs mailing list