Bug 22515 – Aggregate definition with qualifiers has inconsistencies between structs and classes

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-11-17T03:48:32Z
Last change time
2022-05-25T14:16:10Z
Keywords
pull
Assigned to
No Owner
Creator
Boris Carvajal

Comments

Comment #0 by boris2.9 — 2021-11-17T03:48:32Z
code: const struct S { } S s; static assert(is(S == const)); static assert(is(typeof(s) == const)); const class C { } C c; static assert(is(C == const)); // fails static assert(is(typeof(c) == const)); // fails
Comment #1 by dlang-bot — 2021-11-17T04:23:27Z
@BorisCarvajal created dlang/dmd pull request #13312 "Fix Issue 22515 - Aggregate definition with qualifiers has inconsistencies between structs and classes" fixing this issue: - Fix Issue 22515 - Aggregate definition with qualifiers has inconsistencies between structs and classes https://github.com/dlang/dmd/pull/13312
Comment #2 by dlang-bot — 2021-11-18T11:46:25Z
dlang/dmd pull request #13312 "Fix Issue 22515 - Aggregate definition with qualifiers has inconsistencies between structs and classes" was merged into master: - 61cf16440a1cc2ed1d4b6fa2737f2dfb05000132 by Boris Carvajal: Fix Issue 22515 - Aggregate definition with qualifiers has inconsistencies between structs and classes https://github.com/dlang/dmd/pull/13312
Comment #3 by schveiguy — 2022-05-25T14:16:10Z
*** Issue 20193 has been marked as a duplicate of this issue. ***