www.digitalmars.com         C & C++   DMDScript  

D - Compiler bug

reply MicroWizard <MicroWizard_member pathlink.com> writes:
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
}
Jul 26 2002
next sibling parent Pavel Minayev <evilone omen.ru> writes:
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)
Jul 26 2002
prev sibling parent reply MicroWizard <MicroWizard_member pathlink.com> writes:
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 }
Jul 27 2002
parent reply Pavel Minayev <evilone omen.ru> writes:
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.
Jul 27 2002
parent MicroWizard <MicroWizard_member pathlink.com> writes:
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 :-)
Jul 29 2002