[Issue 4302] Regression(2.046, 1.061): compiler errors using startsWith in CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 21 00:49:25 PDT 2010


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



--- Comment #4 from Rainer Schuetze <r.sagitario at gmx.de> 2010-08-21 00:49:23 PDT ---
(In reply to comment #3)
> The cause of the regression was this line at the end of
> TemplateInstance::semantic()
> around line 3980:
> 
>         if (global.gag)
>         {   // Try to reset things so we can try again later to instantiate it
>             tempdecl->instances.remove(tempdecl_instance_idx);
> +            semanticRun = 0;
> +            inst = NULL;
>         }

The template is also added to the member list of the importing scope/module
(lines 3752+). I guess this should be undone aswell.

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