December 03, 2004 Re: Internal error: cod1 1280 THE ANSWER | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Ok, now I have more information about the internal error of the digital mars compiler. Here the simple code that produce the internal error. UINTCALL FctIntHandlerId(void) { //static int Gap = GetFctIntGap(); static int Gap=1; if (IdFctInt != NULL) return IdFctInt[(uFV - FirstFctIntAddr) / Gap /*FctIntGap*/ ]; else return FctIntHandlerId2TD(); // was: FctIntHandlerId2() 16juil03 } if uncomment "static int Gap = GetFctIntGap();" I got an internal error at compile time. if a put everyting under comment inside GetFctIntGap(); then I still got the internal error. If a comment like above, they is no more internal error. So, the issue is about executiong GetFctIntGap only one time because of the static variable that alwayse initalised only one time. that was a tuff one to isolate... Benoit In article <cok199$1hit$1@digitaldaemon.com>, Walter says... > > >"trembb22" <trembb22_member@pathlink.com> wrote in message news:coibes$21rv$1@digitaldaemon.com... >> can someone help fixing this and explain its meaning a little: >> >> Internal error: cod1 1280 > >This should help: www.digitalmars.com/bugs.html > > |
December 05, 2004 Re: Internal error: cod1 1280 THE ANSWER | ||||
---|---|---|---|---|
| ||||
Posted in reply to trembb22 | Great, but please can I have a complete standalone example that exhibits the error, and the command line switches used, so I can duplicate it? Thanks! "trembb22" <trembb22_member@pathlink.com> wrote in message news:cooj6n$2f27$1@digitaldaemon.com... > Ok, now I have more information about the internal error of the digital mars > compiler. Here the simple code that produce the internal error. > > UINTCALL FctIntHandlerId(void) { > //static int Gap = GetFctIntGap(); > static int Gap=1; > if (IdFctInt != NULL) > return IdFctInt[(uFV - FirstFctIntAddr) / Gap /*FctIntGap*/ ]; > else > return FctIntHandlerId2TD(); // was: FctIntHandlerId2() 16juil03 > } > > if uncomment "static int Gap = GetFctIntGap();" I got an internal error at > compile time. > if a put everyting under comment inside GetFctIntGap(); then I still got the > internal error. > If a comment like above, they is no more internal error. > > So, the issue is about executiong GetFctIntGap only one time because of the > static variable that alwayse initalised only one time. > > that was a tuff one to isolate... > > Benoit > > > In article <cok199$1hit$1@digitaldaemon.com>, Walter says... > > > > > >"trembb22" <trembb22_member@pathlink.com> wrote in message news:coibes$21rv$1@digitaldaemon.com... > >> can someone help fixing this and explain its meaning a little: > >> > >> Internal error: cod1 1280 > > > >This should help: www.digitalmars.com/bugs.html > > > > > > |
Copyright © 1999-2021 by the D Language Foundation