Jump to content
Sign in to follow this  
rminnig

C++ compiler bug

Recommended Posts

Bug description:

comments using /* */ are not handled according to the C++ standard. (ISO/IEC 14882:1998, section 2.7, pg. 12)

 

Steps to reproduce:

The following comments cause a compiler error:

/* $Log: $      

*

/********************************/

 

Expected behaviour:

excerpt from ISO/IEC 14882:1998...

Similarly, the comment characters // and /* have no special meaning within a /* comment.

 

Is the problem 100% reproduceable:

happens every time

 

PicAntIDE version:   5.2.2 upgraded to 5.2.3 but another bug still shows 5.2.2 in the about box.

Compiler:               Compiler (C2C++)

Compiler version:     5.2.2e

 

OS:                      Windows 2000, Service Pack 4

 

Comments:

The third line which starts with a /* should not be considered the start of a new comment because the preceding /* was not closed with a */.  Removing the example comments makes the error go away.  Removing the second /* (from line 3) makes the error go away.

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...