[Issue 20168] New: Missing context when CTFE fails with 'no available source code'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 26 08:05:19 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20168
Issue ID: 20168
Summary: Missing context when CTFE fails with 'no available
source code'
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Keywords: CTFE, diagnostic
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: simen.kjaras at gmail.com
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().
--
More information about the Digitalmars-d-bugs
mailing list