[Issue 8608] CTFE seems to be invoked implicitly(std.parallelism.task)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 3 00:44:47 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8608


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE, ice
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2012-09-03 00:45:07 PDT ---
CTFE is invoked because doFor(file) is an expression, and therefore cannot be
an alias. So that's not a bug. The internal compiler error obviously is,
though.
It needs to be reduced a bit further to see what's triggering it.

Partly reduced test case:

import std.stdio;

void task(F)(F fun) {}


void doFor(File ) { }

void main() {
    File file;
    task!(doFor(file));
}

-- 
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