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

--- Comment #0 from Sergey Gromov <> 2009-11-26 15:46:08 
PST ---
The following code:

void foo(T)(size_t line = __LINE__) {}
void main() { foo!char(); }

when compiled, causes an internal compiler error:

>dmd2 -c test.d
Internal error: e2ir.c 652

Workaround: declare line as int.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to