digitalmars.D.bugs - [Issue 1806] New: "const" makes typesafe variadic arguments not work properly.
- d-bugmail puremagic.com (28/28) Jan 25 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1806
- d-bugmail puremagic.com (9/9) Mar 06 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1806
http://d.puremagic.com/issues/show_bug.cgi?id=1806 Summary: "const" makes typesafe variadic arguments not work properly. Product: D Version: 2.010 Platform: PC OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: burton-radons shaw.ca This code: void a (const int [] data...) { a (1); } Fails compilation with the mysterious error message "Error: __arrayArg1[0u] is not mutable". Removing "const" allows it to compile; however, that makes this not work: void a (int [] data...) { const int [] foo; a (foo); } --
Jan 25 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1806 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed dmd 2.012 --
Mar 06 2008