Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
November 15, 2004 compiler aborts | ||||
---|---|---|---|---|
| ||||
dmd 0.106, winXP thanks ALLOT for fixing the "tocvdebug.c" bug, now i can use the -g option to debug my codes!! anyway.. compiler aborts to the following code. <code> template t(int L) { int a; // void foo(int b = t!(L).a) {} // correct void foo(int b = t.a) {} // wrong } unittest { mixin t!(10); } </code> tetsuya |
November 15, 2004 Re: compiler aborts | ||||
---|---|---|---|---|
| ||||
Posted in reply to tetsuya | added to DStress as: http://svn.kuehne.cn/dstress/nocompile/default_argument_05. http://svn.kuehne.cn/dstress/run/default_argument_06.d http://svn.kuehne.cn/dstress/run/default_argument_07.d Thomas tetsuya schrieb am Montag, 15. November 2004 16:36: > compiler aborts to the following code. > > <code> > template t(int L) > { > int a; > // void foo(int b = t!(L).a) {} // correct > void foo(int b = t.a) {} // wrong > } > > unittest > { > mixin t!(10); > } > </code> > > > tetsuya |
November 16, 2004 Re: compiler aborts | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne | > http://svn.kuehne.cn/dstress/nocompile/default_argument_05. should have been: http://svn.kuehne.cn/dstress/nocompile/default_argument_05.d |
December 01, 2004 Re: compiler aborts | ||||
---|---|---|---|---|
| ||||
Posted in reply to tetsuya | What do you mean by "compiler aborts"? It compiles without error when I try it. -Walter |
December 01, 2004 Re: compiler aborts | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | In article <cok7fv$1qph$1@digitaldaemon.com>, Walter says... > >What do you mean by "compiler aborts"? It compiles without error when I try it. -Walter Try the unittest option. |
December 01, 2004 Re: compiler aborts | ||||
---|---|---|---|---|
| ||||
Posted in reply to k2 | ok! |
Copyright © 1999-2021 by the D Language Foundation