Bug 22276 – Compiler crash for extern(C++) under Windows

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2021-09-04T10:34:58Z
Last change time
2024-12-13T19:18:20Z
Keywords
C++, mangling
Assigned to
No Owner
Creator
Tim
Moved to GitHub: dmd#18055 →

Comments

Comment #0 by tim.dlang — 2021-09-04T10:34:58Z
The following code results in a compiler crash with dmd 2.097.2 for Windows (tested under wine), but compiles sucessfully with dmd for Linux: struct S(alias F) { extern(C++) static impl() { } } class C { void f(); void f(int); } S!(__traits(getOverloads, C, "f")[0]) x; It looks like a null pointer access.
Comment #1 by robert.schadek — 2024-12-13T19:18:20Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18055 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB