Thread overview
Compiler bug
Jul 26, 2002
MicroWizard
Jul 26, 2002
Pavel Minayev
Compiler bug again
Jul 27, 2002
MicroWizard
Jul 27, 2002
Pavel Minayev
Jul 29, 2002
MicroWizard
July 26, 2002
Compiling this prog I got the following message (DMD alpha 0.35)

Internal error: e2ir.c 1703

------------------------------------
import c.stdio;

class Tag{
char[] name;
public:
this(char[] n)
{
name=n;
};

char[] GetName() {return(name);};
}

void main(char[][] arg)
{
Tag k=new Tag('Document');

//	printf("%.*s\n",k.GetName());	//correct
printf("%.*s\n",k.GetName());	//Internal error: e2ir.c 1703
}


July 26, 2002
On Fri, 26 Jul 2002 16:16:58 +0000 (UTC) MicroWizard <MicroWizard_member@pathlink.com> wrote:

> Compiling this prog I got the following message (DMD alpha 0.35)
> 
> Internal error: e2ir.c 1703

It works fine for me! (the same version)
July 27, 2002
Pavel, you're right. I've posted the wrong version :-(

Just left out the "()" at the end of last line as shown (now correctly) below
and the compiler crashes. I checked the spec and it should work as the former
line. (gettor member function)

Tamas

>Compiling this prog I got the following message (DMD alpha 0.35)
>
>Internal error: e2ir.c 1703
------------------------------------
import c.stdio;

class Tag{
char[] name;
public:
this(char[] n)
{
name=n;
};
char[] GetName() {return(name);};
}

void main(char[][] arg)
{
Tag k=new Tag('Document');

//  printf("%.*s\n",k.GetName());	//correct
printf("%.*s\n",k.GetName);	//Internal error: e2ir.c 1703
}


July 27, 2002
On Sat, 27 Jul 2002 21:47:05 +0000 (UTC) MicroWizard <MicroWizard_member@pathlink.com> wrote:

> Pavel, you're right. I've posted the wrong version :-(
> 
> Just left out the "()" at the end of last line as shown (now correctly) below
> and the compiler crashes. I checked the spec and it should work as the former
> line. (gettor member function)

Property settors/gettors are simply not implemented yet.
July 29, 2002
In article <CFN374651002181597@news.digitalmars.com>, Pavel Minayev says...
>
>On Sat, 27 Jul 2002 21:47:05 +0000 (UTC) MicroWizard <MicroWizard_member@pathlink.com> wrote:
>
>> Pavel, you're right. I've posted the wrong version :-(
>> 
>> Just left out the "()" at the end of last line as shown (now correctly) below
>> and the compiler crashes. I checked the spec and it should work as the former
>> line. (gettor member function)
>
>Property settors/gettors are simply not implemented yet.

Ok. It is clear. But the bug exists :-)