[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 changed: What|Removed |Added Keywords||accepts-invalid, wrong-code CC|

[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 #7 from Don 2009-08-14 06:04:11 PDT --- It's definitely not a recent regression, D1.020 behaved the same way. Probably the same as 2733, (but please DO NOT mark this as a duplicate, this is a much better bug report). Even small

[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 #8 from Don 2009-08-14 07:30:04 PDT --- 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

[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 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 "local names" can be us

[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 Jarrett Billingsley changed: What|Removed |Added CC||jarrett.billings...@gmail.c

[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 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 is: if it is a co

[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 #12 from Lars T. Kyllingstad 2009-08-14 12:55:04 PDT --- 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 works. And it should -- I think the code is va

[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 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 works. And it should -

[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 #14 from Lars T. Kyllingstad 2009-08-14 13:05:26 PDT --- Oh, my. :) Didn't even cross my mind that the order of the files matter. But my example IS valid code, right? -- Configure issuemail: http://d.puremagic.com/issues/user

[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 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; bar!(i)(); } void ba

[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 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 nice candidate for th

[Issue 3167] Passing result of a function call as ref argument no longer works

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

[Issue 3248] lossless floating point formatting

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

[Issue 3237] Access Violation during reference counting

2009-08-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3237 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution|