[Issue 14803] successful static assert can change result of compilation

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Sep 1 05:53:36 PDT 2015


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

Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|regression                  |major

--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> ---
This is a problem in the implementation of instance cache. None of old versions
did support it.

(In reply to Vladimir Panteleev from comment #1)
> This appears to be a regression.
> 
> Introduced by https://github.com/D-Programming-Language/dmd/pull/544

No, before that PR, there's no attribute inference for template functions, so
foo!T() didn't see the hasElaborateAssign!T instantiation in its body.

Change to major.

--


More information about the Digitalmars-d-bugs mailing list