[Issue 12016] New: implicit immutable upcast becomes null in CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 27 22:33:50 PST 2014
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: nobody at puremagic.com
ReportedBy: thecybershadow at gmail.com
--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list