Thread overview
[Issue 14803] successful static assert can change result of compilation
Sep 01, 2015
Vladimir Panteleev
Sep 01, 2015
Kenji Hara
Dec 17, 2022
Iain Buclaw
September 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14803

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow@gmail.com
           Severity|normal                      |regression

--- Comment #1 from Vladimir Panteleev <thecybershadow@gmail.com> ---
This appears to be a regression.

Introduced by https://github.com/D-Programming-Language/dmd/pull/544

--
September 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14803

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

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

--- Comment #2 from Kenji Hara <k.hara.pg@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.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=14803

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

--