Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
July 26, 2002 Compiler bug | ||||
---|---|---|---|---|
| ||||
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 Re: Compiler bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to MicroWizard | 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 Compiler bug again | ||||
---|---|---|---|---|
| ||||
Posted in reply to MicroWizard | 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 Re: Compiler bug again | ||||
---|---|---|---|---|
| ||||
Posted in reply to MicroWizard | 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 Re: Compiler bug again | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pavel Minayev | 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 :-) |
Copyright © 1999-2021 by the D Language Foundation