[Issue 2139] Compiler rejects delegate of a static struct instance as non-constant
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 9 13:50:20 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=2139
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |razvan.nitu1305 at gmail.com
--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
The compiler now errors in the first case:
Error: cannot take address of thread-local variable s at compile time
And in the third case:
Error: static variable s cannot be read at compile time
The second case compiles.
--
More information about the Digitalmars-d-bugs
mailing list