Thread overview
[Issue 21832] Wrong deprecation message when importing non-deprecated template in static condition
Apr 15, 2021
Iain Buclaw
Apr 15, 2021
Dlang Bot
Apr 16, 2021
Dlang Bot
April 15, 2021
https://issues.dlang.org/show_bug.cgi?id=21832

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Correction on test:

module mod;
static if(1)
{
    int fun()(int a)
    {
        return a;
    }
}

deprecated
{
    double fun()(double a)
    {
        return a;
    }
}
---
module main;
int inst(T)(T x)
{
    import selective : fun; // template 'fun' is deprecated
    return fun(x);
}

int main()
{
    return inst(0); // instantiated from here
}

--
April 15, 2021
https://issues.dlang.org/show_bug.cgi?id=21832

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw created dlang/dmd pull request #12442 "fix Issue 21832 - Wrong deprecation message when importing non-deprecated template in static condition" fixing this issue:

- fix Issue 21832 - Wrong deprecation message when importing non-deprecated template in static condition

https://github.com/dlang/dmd/pull/12442

--
April 16, 2021
https://issues.dlang.org/show_bug.cgi?id=21832

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12442 "fix Issue 21832 - Wrong deprecation message when importing non-deprecated template in static condition" was merged into master:

- d029cc4c9fa06d96470c933da2d4c33614fa3c18 by Iain Buclaw:
  fix Issue 21832 - Wrong deprecation message when importing non-deprecated
template in static condition

https://github.com/dlang/dmd/pull/12442

--