digitalmars.D.bugs - [Issue 5524] New: [CTFE] Trouble with typesafe variadic function
- d-bugmail puremagic.com (34/34) Feb 04 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5524
- d-bugmail puremagic.com (12/12) Mar 01 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5524
http://d.puremagic.com/issues/show_bug.cgi?id=5524 Summary: [CTFE] Trouble with typesafe variadic function Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc --- Comment #0 from bearophile_hugs eml.cc 2011-02-04 10:30:31 PST --- Andrej Mitrovic has found this D2 code produces errors: import std.path : join; enum rootdir = r"C:\Path\"; enum testdir = join(rootdir, "simple"); void main() {} I have reduced that bug to: int foo(int x, int y, int[] more...) { return 0; } enum r = foo(0, 0); void main() {} DMD 2.051 prints: test.d(4): Error: variable __arrayArg1 is used before initialization test.d(4): Error: cannot evaluate foo(0,0,(int[0u] __arrayArg1 = void; , cast(int[])__arrayArg1)) at compile time test.d(4): Error: cannot evaluate foo(0,0,(int[0u] __arrayArg1 = void; , cast(int[])__arrayArg1)) at compile time -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 04 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5524 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug yahoo.com.au Resolution| |FIXED --- Comment #1 from Don <clugdbug yahoo.com.au> 2011-03-01 17:15:27 PST --- https://github.com/D-Programming-Language/dmd/commit/99ee94e2052860737d0b3bfa37d00a697501dc68 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 01 2011