www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Compiler crash

reply %u <vev6s4702 sneakemail.com> writes:
Although this is a typo {} instead of [], and probably a syntax error, it
shouldn't crash the compiler.

    Version: Digital Mars D Compiler v0.175 on XP

The code:

    ulong[] u = { 0xffffffffffffffff };

    int main( char[][] args ) {
        return 0;
    }
Dec 05 2006
parent reply Brad Roberts <braddr puremagic.com> writes:
On Tue, 5 Dec 2006, %u wrote:

 Although this is a typo {} instead of [], and probably a syntax error, it
shouldn't crash the compiler.
 
     Version: Digital Mars D Compiler v0.175 on XP
 
 The code:
 
     ulong[] u = { 0xffffffffffffffff };
 
     int main( char[][] args ) {
         return 0;
     }
Grab 0.176. I believe this was fixed in that release. It had a rather large number of fixes in it. If it's NOT fixed in 0.176, please file a report in bugzilla. Later, Brad
Dec 05 2006
parent %u <vev6s4702 sneakemail.com> writes:
Indeed, v0.176 fixes it.

Sorry for the false report, but I only grabbed v0.175 a couple of days ago and
didn't think to check for a later version.
Dec 05 2006