www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 404] New: Regression: missing source location in "Error: array initializers as expressions are not allowed"

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=404

           Summary: Regression: missing source location in "Error: array
                    initializers as expressions are not allowed"
           Product: D
           Version: 0.168
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn


#
# int main(){
#     char a[1] = [int.max:0,1];
#     return 0;
# }
#

dmd-0.167:
a.d(3): variable sample.main.a is not a static and cannot have static
initializer

dmd-0.168:
Error: array initializers as expressions are not allowed

test case:
http://dstress.kuehne.cn/nocompile/array_initialization_13.d


-- 
Oct 06 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=404


bugzilla digitalmars.com changed:

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




------- Comment #1 from bugzilla digitalmars.com  2006-10-10 03:31 -------
Fixed DMD 0.169


-- 
Oct 10 2006