www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 482] New: _arguments for variadic not available in precondition

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

           Summary: _arguments for variadic not available in precondition
           Product: D
           Version: 0.172
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: wbaxter gmail.com


This compiles fine, but prints some bogus number at runtime:

void func(...)
in {
    writefln("Arguments len = ", _arguments.length); 
}
body {

}


-- 
Nov 05 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail puremagic.com schrieb am 2006-11-06:
 http://d.puremagic.com/issues/show_bug.cgi?id=482

 This compiles fine, but prints some bogus number at runtime:

 void func(...)
 in {
     writefln("Arguments len = ", _arguments.length); 
 }
 body {

 }

Added to DStress as http://dstress.kuehne.cn/run/i/in_out_body_13_A.d http://dstress.kuehne.cn/run/i/in_out_body_13_B.d http://dstress.kuehne.cn/run/i/in_out_body_13_C.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFUfdnLK5blCcjpWoRAsSnAJ4r9kUchQrDkYvuATNB1xoAI19u4QCdEMmY tLrinOtLEfrbKuTpneDu2z0= =MUWJ -----END PGP SIGNATURE-----
Nov 08 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=482


bugzilla digitalmars.com changed:

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




------- Comment #2 from bugzilla digitalmars.com  2006-11-24 20:02 -------
Cannot reproduce problem with DMD 0.174.


-- 
Nov 24 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=482


wbaxter gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED




------- Comment #3 from wbaxter gmail.com  2006-11-24 23:48 -------
(In reply to comment #2)
 Cannot reproduce problem with DMD 0.174.
 

Connfirmed. It works here too now with 0.174. --
Nov 24 2006