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

2009-08-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2962 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||accepts-invalid, wrong-code

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

2009-08-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2962 --- Comment #9 from Sergey Gromov snake.sc...@gmail.com 2009-08-14 08:03:44 PDT --- By the way, the example Lars posted is not as obviously invalid, at least to me. He passes a local variable as a template alias parameter. Docs say that

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

2009-08-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2962 --- Comment #11 from Don clugd...@yahoo.com.au 2009-08-14 08:12:03 PDT --- (In reply to comment #10) (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

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

2009-08-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2962 --- Comment #13 from Sergey Gromov snake.sc...@gmail.com 2009-08-14 13:00:32 PDT --- (In reply to comment #12) What I find very strange here is that when I compile my test case with DMD 2.031 specifying just the four attached files, it

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

2009-08-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2962 --- Comment #15 from Sergey Gromov snake.sc...@gmail.com 2009-08-14 13:34:17 PDT --- I do think it's valid, see my comment #9. According to the obj2asm, when you pass a local var as an alias parameter to a template: void foo() { int i;

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

2009-08-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2962 --- Comment #16 from Sergey Gromov snake.sc...@gmail.com 2009-08-14 14:05:39 PDT --- Seems like this bug is an ice-on-VALID after all. All our examples boil down to passing local variables as alias template arguments. Also it seems like a

[Issue 3248] lossless floating point formatting

2009-08-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3248 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|