[Issue 748] internal error with mixed static / dynamic array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 26 09:53:57 PST 2006


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


wbaxter at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |normal
           Keywords|                            |spec




------- Comment #1 from wbaxter at gmail.com  2006-12-26 11:53 -------
On second thought, maybe that should compile.  Generally speaking this works:

T[] a;
T b;
a ~= b

For instance it's no problem if T is int,float, or any struct, etc.  In this
case T happens to be int[2], and it crashes the compiler.

Anyway, this (concatenating single elements with arrays) is one point on which
the spec is notably silent.  If the above is not supposed to work, then it is
an error for it to work in the case of int, float et al.   If it is supposed to
work, then it is an error for it not to work for int[2].   

Either way the spec should probably be explicit about whether the above is
legal.


-- 



More information about the Digitalmars-d-bugs mailing list