http://d.puremagic.com/issues/show_bug.cgi?id=2962
Don changed:
What|Removed |Added
Keywords||accepts-invalid, wrong-code
CC|
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
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
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
http://d.puremagic.com/issues/show_bug.cgi?id=2962
Jarrett Billingsley changed:
What|Removed |Added
CC||jarrett.billings...@gmail.c
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
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
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 -
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
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
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
http://d.puremagic.com/issues/show_bug.cgi?id=3167
Walter Bright changed:
What|Removed |Added
CC||bugzi...@digitalmars.com
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=3248
Walter Bright changed:
What|Removed |Added
CC||bugzi...@digitalmars.com
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=3237
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
14 matches
Mail list logo