bugDotGNU Portable.NET - Bugs: bug #9674, cscc accepts missing semicolon in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9674: cscc accepts missing semicolon in do-while-statement

Submitter:  Marcus Urban <mathpup>
Submitted:  Sat 17 Jul 2004 07:55:47 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Sat 17 Jul 2004 02:30:30 PM UTC, comment #1: 

The OptSemiColon was passing this code for the normal case.

This has been fixed in CVS .

Gopal.V <t3rmin4t0r>
Group administrator
Sat 17 Jul 2004 07:55:47 AM UTC, original submission:  

According to ECMA C# specs, the do-statement has the syntax

do-statement: do embedded-statement while ( boolean-expression ) ;

cscc accepts the do-statement without the terminating semicolon.

On a sidenote: I have been told that some libraries in pnetlib are missing the semicolon but do compile with cscc because of this bug.)

The attached test-case fails with csc:

/home/marcus/do-while-semicolon.cs(9,15): error CS1002:         ; expected

However, it compiles with cscc.



Marcus Urban <mathpup>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #1564:  do-while-semicolon.cs added by mathpup (110B - text/x-csharp - Test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-07-17 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed
2004-07-17 mathpup Attached File- Added do-while-semicolon.cs, #1501

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code