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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Sergey Gromov <[email protected]> 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: -------