http://d.puremagic.com/issues/show_bug.cgi?id=3553
Summary: ICE when a template function size_t argument defaults to __LINE__ Product: D Version: 2.036 Platform: Other OS/Version: Windows Status: NEW Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: snake.sc...@gmail.com --- Comment #0 from Sergey Gromov <snake.sc...@gmail.com> 2009-11-26 15:46:08 PST --- The following code: ------8<--------- void foo(T)(size_t line = __LINE__) {} void main() { foo!char(); } ------8<--------- when compiled, causes an internal compiler error: >dmd2 -c test.d __LINE__ Internal error: e2ir.c 652 Workaround: declare line as int. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------