D - Compiler bug
- MicroWizard <MicroWizard_member pathlink.com> Jul 26 2002
- Pavel Minayev <evilone omen.ru> Jul 26 2002
- MicroWizard <MicroWizard_member pathlink.com> Jul 27 2002
- Pavel Minayev <evilone omen.ru> Jul 27 2002
- MicroWizard <MicroWizard_member pathlink.com> Jul 29 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
}
Jul 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)
Jul 26 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) TamasCompiling 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
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
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









Pavel Minayev <evilone omen.ru> 