[Issue 2962] ICE(glue.c) or bad codegen passing variable as template value parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 14 08:05:07 PDT 2009


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


Jarrett Billingsley <jarrett.billingsley at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jarrett.billingsley at gmail.c
                   |                            |om




--- Comment #10 from Jarrett Billingsley <jarrett.billingsley at gmail.com>  2009-08-14 08:05:06 PDT ---
(In reply to comment #8)
> Actually I'm not sure if this a bug or an easter egg. The current behaviour of
> template value parameters is: if it is a compile-time constant, instantiate the
> template as a value. If it is a variable, instantiate it as an alias parameter.
> 
> That's actually quite cool.

Local variables have been passable as alias parameters for quite some time now.
 :)

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