[Issue 5147] [CTFE] Return fixed-sized matrix

2011-04-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5147


Don  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||clugd...@yahoo.com.au
 Resolution||FIXED
   Severity|enhancement |normal


--- Comment #3 from Don  2011-04-08 21:20:10 PDT ---
This is definitely a bug, not an enhancement. It applies to any use of
multidimensional static arrays in CTFE (not just return values). Thus, it also
applies to D1.

Fixed.
D1:
https://github.com/D-Programming-Language/dmd/commit/ef2a0f1da10331c4de102ca3e029ea1c1c1a46bf

D2:
https://github.com/D-Programming-Language/dmd/commit/0219a5f0dcc88076759a4c472582954d0fb804b0

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


[Issue 5147] [CTFE] Return fixed-sized matrix

2010-10-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5147



--- Comment #2 from bearophile_h...@eml.cc 2010-10-31 16:31:43 PDT ---
See also bug 5081 for a different solution

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


[Issue 5147] [CTFE] Return fixed-sized matrix

2010-10-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5147


Michal Minich  changed:

   What|Removed |Added

 CC||michal.min...@gmail.com


--- Comment #1 from Michal Minich  2010-10-31 14:49:37 
PDT ---
I would like to point out that this code works:

int[1] foo2() {
int[1] a;
return a;
}
enum int[1] m3 = foo2();
immutable int[1] m4 = foo2();
void main() {}

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