www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - compiler aborts

reply tetsuya <tetsuya_member pathlink.com> writes:
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
next sibling parent reply Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> writes:
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
parent Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> writes:
 http://svn.kuehne.cn/dstress/nocompile/default_argument_05.

http://svn.kuehne.cn/dstress/nocompile/default_argument_05.d
Nov 16 2004
prev sibling next sibling parent reply "Walter" <newshound digitalmars.com> writes:
What do you mean by "compiler aborts"? It compiles without error when I try
it. -Walter
Dec 01 2004
parent reply k2 <k2_member pathlink.com> writes:
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
parent "Walter" <newshound digitalmars.com> writes:
ok!
Dec 01 2004
prev sibling parent "Walter" <newshound digitalmars.com> writes:
It's fixed now. -Walter
Dec 01 2004