Advertisement

Small compiller bug

Started by January 24, 2013 02:57 PM
3 comments, last by FDsagizi 11 years, 9 months ago

Hi I'ts me againe) And againe strange bug!smile.png

this code not compilated ( Unreachable code )


int f()
{
        return 0;;
}
 

As far as the compiler is concerned, that second semicolon is an unreachable statement (albeit an empty one).

Delete the second semicolon.

Advertisement

C0lumbo is correct.

However, I'll check it out anyway. The compiler should ideally see that the second semicolon doesn't generate any code and thus not complain about unreachable code.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Fixed in revision 1536.

Regards,

Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

again)


class A
{
    int a; ;
}
 

This topic is closed to new replies.

Advertisement