Thread overview
[Issue 1097] New: Missing line number: casting array to array of different element size
Apr 05, 2007
d-bugmail
Apr 06, 2007
d-bugmail
Jul 09, 2008
d-bugmail
Jul 10, 2008
d-bugmail
April 05, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1097

           Summary: Missing line number: casting array to array of different
                    element size
           Product: D
           Version: 1.009
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: deewiant@gmail.com


void main() {
        auto x = cast(int[])"a";
}

Result of compiling above: "Error: cannot cast char[1] to int[] since sizes don't line up" with no information on which file or line.

Tested in 1.009 and 1.010, same result.


-- 

April 06, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1097


thomas-dloop@kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows                     |All




------- Comment #1 from thomas-dloop@kuehne.cn  2007-04-06 04:15 -------
Added to DStress as http://dstress.kuehne.cn/nocompile/c/cast_35_A.d http://dstress.kuehne.cn/run/c/cast_35_B.d http://dstress.kuehne.cn/run/c/cast_35_C.d


-- 

July 09, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1097


clugdbug@yahoo.com.au changed:

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




------- Comment #2 from clugdbug@yahoo.com.au  2008-07-09 07:11 -------
Fixed DMD1.032


-- 

July 10, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1097





------- Comment #3 from bugzilla@digitalmars.com  2008-07-09 22:37 -------
Fixed dmd 1.032 and 2.016


--