digitalmars.D.bugs - compiler aborts
- tetsuya <tetsuya_member pathlink.com> Nov 15 2004
- Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> Nov 15 2004
- "Walter" <newshound digitalmars.com> Dec 01 2004
- k2 <k2_member pathlink.com> Dec 01 2004
- "Walter" <newshound digitalmars.com> Dec 01 2004
- "Walter" <newshound digitalmars.com> Dec 01 2004
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
Nov 15 2004
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
Nov 15 2004
http://svn.kuehne.cn/dstress/nocompile/default_argument_05.
http://svn.kuehne.cn/dstress/nocompile/default_argument_05.d
Nov 16 2004
What do you mean by "compiler aborts"? It compiles without error when I try it. -Walter
Dec 01 2004
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.
Dec 01 2004









Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> 