www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Ask for help about Internal error: e2ir.c 5007

reply zhang <bitworld qq.com> writes:
I'm porting the Scintilla (C++) to D. The module of scintilla.Editor is a big
one which has over 10,000 lines. 
I have tried my best to get rid of all the warning and error messages emitted
by DMD 2.054, except for one:

dmd.exe -version=WindowsXP  -g -debug    -IE:\dmd\contrib\import  -c
scintilla\Editor.d -ofobj\Debug\scintilla\Editor.obj
Internal error: e2ir.c 5007

Of course, there are many bugs hidding in the Editor.d. However, I need more
hints from the compiler to kill the bugs.
Thanks for any help.

----------
Zhang <bitworld qq.com>

t
Jul 13 2011
next sibling parent "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Wed, 13 Jul 2011 17:42:05 +0300, zhang <bitworld qq.com> wrote:

 dmd.exe -version=WindowsXP  -g -debug    -IE:\dmd\contrib\import  -c  
 scintilla\Editor.d -ofobj\Debug\scintilla\Editor.obj
 Internal error: e2ir.c 5007

* SHAMELESS PLUG WARNING * Until a compiler developer can look at this, you can use DustMite to help identify the cause of uninformative compiler error messages: https://github.com/CyberShadow/DustMite -- Best regards, Vladimir mailto:vladimir thecybershadow.net
Jul 13 2011
prev sibling next sibling parent "Daniel Murphy" <yebblies nospamgmail.com> writes:
If you trust me, dropping the dmd.exe I emailed you in place of your 
existing one should give you a line number and file.

"zhang" <bitworld qq.com> wrote in message 
news:mailman.1603.1310568147.14074.digitalmars-d puremagic.com...
 I'm porting the Scintilla (C++) to D. The module of scintilla.Editor is a 
 big one which has over 10,000 lines.
 I have tried my best to get rid of all the warning and error messages 
 emitted by DMD 2.054, except for one:

 dmd.exe -version=WindowsXP  -g -debug    -IE:\dmd\contrib\import  -c 
 scintilla\Editor.d -ofobj\Debug\scintilla\Editor.obj
 Internal error: e2ir.c 5007

 Of course, there are many bugs hidding in the Editor.d. However, I need 
 more hints from the compiler to kill the bugs.
 Thanks for any help.

 ----------
 Zhang <bitworld qq.com>

 t 

Jul 13 2011
prev sibling next sibling parent zhang <bitworld qq.com> writes:
 * SHAMELESS PLUG WARNING *
 
 Until a compiler developer can look at this, you can use DustMite to help  
 identify the cause of uninformative compiler error messages:
 https://github.com/CyberShadow/DustMite

---------- Zhang <bitworld qq.com> l
Jul 14 2011
prev sibling parent reply zhang <bitworld qq.com> writes:
 If you trust me, dropping the dmd.exe I emailed you in place of your 
 existing one should give you a line number and file.

Thanks for your dmd.exe. You are so kind. I got the error using it. I have filed a bug at here http://d.puremagic.com/issues/show_bug.cgi?id=6317 ---------- Zhang <bitworld qq.com>
Jul 14 2011
parent "Daniel Murphy" <yebblies nospamgmail.com> writes:
No problem.  As I posted there, the workaround is to use a struct literal 
instead of a struct initializer.
eg.

void fun()
{
  struct nested { int a, b; void func() {} }
  nested x = { 1, 2 }; // doesn't work
  nested y = nested(1, 2); // works
}

"zhang" <bitworld qq.com> wrote in message 
news:mailman.1644.1310669400.14074.digitalmars-d puremagic.com...
 If you trust me, dropping the dmd.exe I emailed you in place of your
 existing one should give you a line number and file.

Thanks for your dmd.exe. You are so kind. I got the error using it. I have filed a bug at here http://d.puremagic.com/issues/show_bug.cgi?id=6317 ---------- Zhang <bitworld qq.com>

Jul 14 2011