[Issue 16981] New: [Reg 2.073] assigning class or struct pointers to enum became an error
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Dec 18 10:11:38 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16981
Issue ID: 16981
Summary: [Reg 2.073] assigning class or struct pointers to enum
became an error
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: code at dawg.eu
cat > bug.d << CODE
void bug()
{
import std.regex : ctRegex;
enum te = ctRegex!("a");
}
CODE
dmd -c -o- bug
----
bug.d(4): Error: variable bug.bug.te : Unable to initialize enum with class or
pointer to struct. Use static const variable instead.
----
Works without deprecation in 2.072.1.
--
More information about the Digitalmars-d-bugs
mailing list