Bug 20419 – is(missing == module/package) results in unknown identifier

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-11-26T21:20:56Z
Last change time
2021-04-03T01:03:41Z
Keywords
pull
Assigned to
No Owner
Creator
moonlightsentinel

Comments

Comment #0 by moonlightsentinel — 2019-11-26T21:20:56Z
is(stuff == module) and is(stuff == package) raise an error if "stuff" is an unknown symbol. All other non-type checks (e.g. stuff == class) simply evaluate to false because the spec only requires "stuff" to be syntactically valid.
Comment #1 by dlang-bot — 2019-11-26T21:34:54Z
@MoonlightSentinel created dlang/dmd pull request #10621 "Fix Issue 20419 - is(missing == module/package) results in unknown id…" fixing this issue: - Fix Issue 20419 - is(missing == module/package) results in unknown identifier is(missing == module) and is(missing == package) raised an error for missing identifiers, violating the language specification wich only requires the identifier to be syntactically valid. https://github.com/dlang/dmd/pull/10621
Comment #2 by dlang-bot — 2019-11-27T01:04:21Z
dlang/dmd pull request #10621 "Fix Issue 20419 - is(missing == module/package) results in unknown id…" was merged into master: - 09037a8641f942b6248f503b48c1a1c382159412 by MoonlightSentinel: Fix Issue 20419 - is(missing == module/package) results in unknown identifier is(missing == module) and is(missing == package) raised an error for missing identifiers, violating the language specification wich only requires the identifier to be syntactically valid. https://github.com/dlang/dmd/pull/10621
Comment #3 by dlang-bot — 2021-04-03T01:03:41Z
dlang/dmd pull request #12350 "[dmd-cxx] More fixes for package import visibility" was merged into dmd-cxx: - f155716b9c8091bf4ccf73473dd0f1219a9bf16d by MoonlightSentinel: [dmd-cxx] Fix Issue 20419 - is(missing == module/package) results in unknown identifier https://github.com/dlang/dmd/pull/12350