Thread overview
[Issue 2910] New: ~= can append array literals to strings.
Apr 29, 2009
d-bugmail
Apr 29, 2009
d-bugmail
Apr 29, 2009
d-bugmail
April 29, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2910

           Summary: ~= can append array literals to strings.
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: clugdbug@yahoo.com.au


void main()
{
   char [] s;
   s ~= [0x313233L, 0x44];
}

D2 only, D1 correctly rejects it.


-- 

April 29, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2910





------- Comment #1 from dsimcha@yahoo.com  2009-04-29 09:53 -------
I'm not sure I fully understand this bug, but if I do understand it correctly, it's a dup of bug 2892.  Please see whether this is the case.


-- 

April 29, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2910


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Comment #2 from clugdbug@yahoo.com.au  2009-04-29 10:31 -------
(In reply to comment #1)
> I'm not sure I fully understand this bug, but if I do understand it correctly, it's a dup of bug 2892.  Please see whether this is the case.

Yup, it's the same. Although I think it only applies when the literal is an integral array literal.



*** This bug has been marked as a duplicate of 2892 ***


--