https://d.puremagic.com/issues/show_bug.cgi?id=12016
Summary: implicit immutable upcast becomes null in CTFE
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: CTFE
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Vladimir Panteleev <[email protected]> 2014-01-28
08:33:46 EET ---
/////////////////////////////////
class Base { }
class Sub : Base { }
int f(immutable Base c)
{
assert(c);
return 1;
}
enum i = f(new immutable Sub);
/////////////////////////////////
The assert fails in DMD git but not 2.064.2.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------