#1720 Fatal compiler internal error

closed-fixed
5
2013-05-25
2010-12-05
centennian
No

I used SDCC 3.0 to compile the following code without using any option:

#include <8052.h>
__sbit __at 0x95 R1;
__sbit __at 0x96 R2;
__sbit __at 0x97 R3;
__sbit __at 0xb0 R4;

void main(void)
{
if (R1 & R2 & R3 &R4)
R1 = 0;
}

Error message: v3test.c|20|error 9: FATAL Compiler Internal Error in file '/home/sdcc-builder/build/sdcc-build/orig/sdcc/src/mcs51/gen.c' line number '6869' : 0 | ||=== Build finished: 1 errors, 0 warnings ===|

My findings:
if (R1 & R2) OK!
if (R1 & R2 & R3) Not OK!
if (R1 & R2 & R3 &R4) Not OK!
if (R1 && R2 && R3 && R4) OK!

Discussion

  • Philipp Klaus Krause

    • labels: --> mcs51(8051) target
     
  • Maarten Brock

    Maarten Brock - 2011-09-15

    This was fixed in SDCC 3.0.2 #6328.
    Just nobody noticed (including me) that bug 3223041 was a duplicate of this one.

     
  • Maarten Brock

    Maarten Brock - 2011-09-15
    • milestone: --> fixed
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks