[Issue 3553] New: ICE when a template function size_t argument defaults to __LINE__
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 26 15:46:09 PST 2009
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: nobody at puremagic.com
ReportedBy: snake.scaly at gmail.com
--- Comment #0 from Sergey Gromov <snake.scaly at 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: -------
More information about the Digitalmars-d-bugs
mailing list