Jump to content

  • Log In with Google      Sign In   
  • Create Account


- - - - -

Small compiller bug


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 FDsagizi   Members   -  Reputation: 514

Like
0Likes
Like

Posted 24 January 2013 - 08:57 AM

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

 

this code not compilated ( Unreachable code )

 

int f()
{
        return 0;;
}
 

Edited by Andreas Jonsson, 24 January 2013 - 05:31 PM.


Sponsor:

#2 C0lumbo   Crossbones+   -  Reputation: 2133

Like
0Likes
Like

Posted 24 January 2013 - 09:02 AM

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

 

Delete the second semicolon.



#3 Andreas Jonsson   Moderators   -  Reputation: 3242

Like
0Likes
Like

Posted 24 January 2013 - 01:11 PM

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

#4 Andreas Jonsson   Moderators   -  Reputation: 3242

Like
0Likes
Like

Posted 24 January 2013 - 05:28 PM

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

#5 FDsagizi   Members   -  Reputation: 514

Like
0Likes
Like

Posted 08 February 2013 - 12:29 AM

again)

 

 

 

class A
{
    int a; ;
}
 





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS