[Issue 4397] const/CTFE does not work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 29 07:40:14 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4397


Christian Kamm <kamm-removethis at incasoftware.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kamm-removethis at incasoftwar
                   |                            |e.de


--- Comment #10 from Christian Kamm <kamm-removethis at incasoftware.de> 2010-07-29 07:40:11 PDT ---
The main problem from my point of view is that this fails:

struct X {
    int[] a;
}

const cX = X([1,2]);

void main()
{
  assert(cX.a.ptr is cX.a.ptr);
}

Which is an issue very similar to bug 2526 .

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list