Bug 24066 – __traits(isAbstractClass) causes a segfault when passed an opaque class

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-08-03T07:53:39Z
Last change time
2023-08-15T22:23:17Z
Keywords
ice, pull
Assigned to
No Owner
Creator
Spoov

Comments

Comment #0 by spoov0.707 — 2023-08-03T07:53:39Z
The following code causes a segfault since DMD 2.072.2, but produces the correct result (false) up to DMD 2.071.2 class C; pragma(msg, __traits(isAbstractClass, C));
Comment #1 by dlang-bot — 2023-08-03T10:13:07Z
@RazvanN7 created dlang/dmd pull request #15495 "Fix Issue 24066 - __traits(isAbstractClass) causes a segfault when passed an opaque class" fixing this issue: - Fix Issue 24066 - __traits(isAbstractClass) causes a segfault when passed an opaque class https://github.com/dlang/dmd/pull/15495
Comment #2 by dlang-bot — 2023-08-03T14:04:47Z
dlang/dmd pull request #15495 "Fix Issue 24066 - __traits(isAbstractClass) causes a segfault when passed an opaque class" was merged into stable: - 9dcb4142db4209d63514c30ac4fb5ac206c12941 by RazvanN7: Fix Issue 24066 - __traits(isAbstractClass) causes a segfault when passed an opaque class https://github.com/dlang/dmd/pull/15495
Comment #3 by dlang-bot — 2023-08-15T22:23:17Z
dlang/dmd pull request #15540 "merge stable" was merged into master: - 1da23e1606e389abee210364cec68f9951f8eefb by Razvan Nitu: Fix Issue 24066 - __traits(isAbstractClass) causes a segfault when passed an opaque class (#15495) * Fix Issue 24066 - __traits(isAbstractClass) causes a segfault when passed an opaque class * Update comment Co-authored-by: Dennis <[email protected]> --------- Co-authored-by: Dennis <[email protected]> https://github.com/dlang/dmd/pull/15540