Thread overview
[Issue 22214] Regression 2.097.0: __traits(compiles) doesn't notice invalid getMember that yields type
Aug 28
Dlang Bot
Aug 29
Dlang Bot
Sep 07
Dlang Bot
August 16
https://issues.dlang.org/show_bug.cgi?id=22214

--- Comment #1 from FeepingCreature <default_357-line@yahoo.de> ---
Simplified:

struct S
{
    struct T
    {
    }
}

void main() {
    const S s;
    static if (__traits(compiles, { auto t = s.T; }))
    {
        auto t = s.T;
    }
}

--
August 28
https://issues.dlang.org/show_bug.cgi?id=22214

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@BorisCarvajal created dlang/dmd pull request #13030 "Fix Issue 22214 - [REG 2.097.0] __traits(compiles) doesn't notice invalid getMember that yields type" fixing this issue:

- Fix Issue 22214 - [REG 2.097.0] __traits(compiles) doesn't notice invalid getMember that yields type

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

--
August 29
https://issues.dlang.org/show_bug.cgi?id=22214

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 #13030 "Fix Issue 22214 - [REG 2.097.0] __traits(compiles) doesn't notice invalid getMember that yields type" was merged into stable:

- 43cdbbb246ef61c9e8f06dd67b9a3a849859abed by Boris Carvajal:
  Fix Issue 22214 - [REG 2.097.0] __traits(compiles) doesn't notice invalid
getMember that yields type

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

--
September 07
https://issues.dlang.org/show_bug.cgi?id=22214

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13053 "merge stable" was merged into master:

- a07d645c50f0c68271e8f23b9ecdc403e7117497 by Boris Carvajal:
  Fix Issue 22214 - [REG 2.097.0] __traits(compiles) doesn't notice invalid
getMember that yields type (#13030)

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

--