http://d.puremagic.com/issues/show_bug.cgi?id=2962
--- Comment #45 from github-bugzi...@puremagic.com 2013-08-27 13:20:09 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd
http://d.puremagic.com/issues/show_bug.cgi?id=2962
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Status|REOPENED|RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=2962
tmn tmn.db...@mailinator.com changed:
What|Removed |Added
CC||tmn.db...@mailinator.com
/d5a33a1cbeedec2ea65ba480636caaf78ca05117
fix Issue 2962 - ICE(glue.c) or bad codegen passing variable as template value
parameter
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
http://d.puremagic.com/issues/show_bug.cgi?id=2962
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
/900c537038932435eaebdf7c0f80926e0bd8f2f5
fix Issue 2962 - ICE(glue.c) or bad codegen passing variable as template value
parameter
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
http://d.puremagic.com/issues/show_bug.cgi?id=2962
--- Comment #38 from Don clugd...@yahoo.com.au 2012-03-23 01:48:04 PDT ---
(In reply to comment #36)
cat a.d CODE
import b;
alias foo!() fooi;
CODE
cat b.d CODE
void foo()(int p)
{
int inner()() { return p; }
alias
http://d.puremagic.com/issues/show_bug.cgi?id=2962
d...@dawgfoto.de changed:
What|Removed |Added
CC||d...@dawgfoto.de
--- Comment #36
http://d.puremagic.com/issues/show_bug.cgi?id=2962
--- Comment #37 from github-bugzi...@puremagic.com 2012-03-22 22:41:57 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos
http://d.puremagic.com/issues/show_bug.cgi?id=2962
Don clugd...@yahoo.com.au changed:
What|Removed |Added
CC||andrej.mitrov...@gmail.com
http://d.puremagic.com/issues/show_bug.cgi?id=2962
Andriy andr...@gmail.com changed:
What|Removed |Added
CC||andr...@gmail.com
---
http://d.puremagic.com/issues/show_bug.cgi?id=2962
--- Comment #34 from Don clugd...@yahoo.com.au 2011-05-23 04:20:16 PDT ---
(In reply to comment #33)
dmd v2.052, Ubuntu, quite short example of this bug:
snip
No, that's a long example -- it imports from Phobos. Test cases for compiler
bugs
http://d.puremagic.com/issues/show_bug.cgi?id=2962
Bernard Helyer blood.of.l...@gmail.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=2962
Rainer Schuetze r.sagita...@gmx.de changed:
What|Removed |Added
CC||r.sagita...@gmx.de
http://d.puremagic.com/issues/show_bug.cgi?id=2962
--- Comment #26 from Don clugd...@yahoo.com.au 2010-12-29 00:03:44 PST ---
(In reply to comment #25)
Sorry, you will encounter this issue when dmd and phobos are debug build.
For dmd, you will build dmd with make -f win32.mak and DEBUG=-g -D
http://d.puremagic.com/issues/show_bug.cgi?id=2962
--- Comment #27 from Don clugd...@yahoo.com.au 2010-12-29 00:19:59 PST ---
A simpler command line is this:
/dmd/src/phobos/std dmd -c -unittest conv.d stdio.d
The unittest which it's failing in, is in stdio.d, line 1630:
unittest
{
float
http://d.puremagic.com/issues/show_bug.cgi?id=2962
--- Comment #28 from Haruki Shigemori rayerd@gmail.com 2010-12-29
08:39:15 PST ---
(In reply to comment #27)
A simpler command line is this:
/dmd/src/phobos/std dmd -c -unittest conv.d stdio.d
The unittest which it's failing in, is in
http://d.puremagic.com/issues/show_bug.cgi?id=2962
--- Comment #29 from Haruki Shigemori rayerd@gmail.com 2010-12-29
10:14:31 PST ---
A simpler sample is this:
// module a
import b;
void main()
{
foo!int(0);
}
// module b
void foo(T)(T p)
{
void inner(U)() {
auto p2 = p;
http://d.puremagic.com/issues/show_bug.cgi?id=2962
Haruki Shigemori rayerd@gmail.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=2962
--- Comment #25 from Haruki Shigemori rayerd@gmail.com 2010-12-28
23:08:59 PST ---
Sorry, you will encounter this issue when dmd and phobos are debug build.
For dmd, you will build dmd with make -f win32.mak and DEBUG=-g -D
-DUNITTEST
http://d.puremagic.com/issues/show_bug.cgi?id=2962
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Severity|major |critical
--
Configure
http://d.puremagic.com/issues/show_bug.cgi?id=2962
--- Comment #21 from Don clugd...@yahoo.com.au 2009-10-13 02:54:53 PDT ---
This is really tough, it's an order-of-evaluation issue.
When generating the code for a template, which has a local variable as an alias
parameter, the alias parameter
http://d.puremagic.com/issues/show_bug.cgi?id=2962
Don clugd...@yahoo.com.au changed:
What|Removed |Added
CC||alvcas...@yahoo.es
---
http://d.puremagic.com/issues/show_bug.cgi?id=2962
--- Comment #18 from Don clugd...@yahoo.com.au 2009-09-10 01:29:07 PDT ---
I don't have a patch, but it's easy to at least get the line number into the
ICE message.
glue.c line 658:
if (v-csym)
error(Bugzilla 2962 - Internal Compiler
http://d.puremagic.com/issues/show_bug.cgi?id=2962
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Keywords||accepts-invalid, wrong-code
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
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
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
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;
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
30 matches
Mail list logo