Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now
- - - - -

Small compiller bug

4: Adsense

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   

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.


#2 C0lumbo   Members   

4365
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   

4628
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   

4628
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   

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.