Thread overview
compiler aborts
Nov 15, 2004
tetsuya
Nov 15, 2004
Thomas Kuehne
Nov 16, 2004
Thomas Kuehne
Dec 01, 2004
Walter
Dec 01, 2004
k2
Dec 01, 2004
Walter
Dec 02, 2004
Walter
November 15, 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


November 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

November 16, 2004
> 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
What do you mean by "compiler aborts"? It compiles without error when I try it. -Walter


December 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.


December 01, 2004
ok!


December 02, 2004
It's fixed now. -Walter