View previous topic :: View next topic |
Author |
Message |
ilitirit
Joined: 28 Dec 2004 Posts: 7
|
Posted: Wed Dec 29, 2004 8:28 am Post subject: Internal error: e2ir.c 141 |
|
|
This is most probably a bug with the D compiler itself but I thought I'd post it here anyway since I discovered it while using DFL.
This program generates an internal compiler error:
Code: |
import dfl.all;
import dfl.winapi;
void main()
{
(new Control).backColor = true ? Control.defaultBackColor : Control.defaultBackColor;
}
|
This is the smallest example I could think of to illustrate the error. The obvious workaround is to use an if/else construct but nevertheless it's still a bug. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Wed Dec 29, 2004 9:40 am Post subject: |
|
|
Looks like it only does that because the property is a struct. I'll post it to the D bugs newsgroup. |
|
Back to top |
|
|
|