Bug 18150 – dmd segfault on classinfo.create

Status
NEW
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-01-01T15:29:06Z
Last change time
2024-12-13T18:55:54Z
Assigned to
No Owner
Creator
Cauterite
Moved to GitHub: dmd#19358 →

Comments

Comment #0 by cauterite — 2018-01-01T15:29:06Z
tested on DMD32 D Compiler v2.077.1: class C {} pragma(msg, C.classinfo.create()); compile -> "object.Error@(0): Access Violation"
Comment #1 by b2.temp — 2018-01-01T15:48:57Z
It's like "typeid(C).create" except that in this case there's a valid error message. There's a single static "TypeInfo_Class" by class. "TypeInfo_Class"es are not designed to be created.
Comment #2 by robert.schadek — 2024-12-13T18:55:54Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19358 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB