Bug 20168 – Missing context when CTFE fails with 'no available source code'

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2019-08-26T08:05:19Z
Last change time
2024-12-13T19:05:15Z
Keywords
CTFE, diagnostic
Assigned to
No Owner
Creator
Simen Kjaeraas
Moved to GitHub: dmd#19615 →

Comments

Comment #0 by simen.kjaras — 2019-08-26T08:05:19Z
int fun2(); int fun() { return fun2(); } enum a = fun(); The above code gives an error message on line 2 (in fun()). This can be arbitrarily deep inside a call chain, gives no indication of the call that instantiated fun().
Comment #1 by robert.schadek — 2024-12-13T19:05:15Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19615 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB