bugDotGNU Portable.NET - Bugs: bug #14510, cscc allows illegal declaration of...

 
 

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

bug #14510: cscc allows illegal declaration of variables

Submitter:  Erich Kitzmüller <ammoq>
Submitted:  Mon 12 Sep 2005 08:11:47 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Discussion

Wed 21 Sep 2005 12:59:32 PM UTC, comment #1: 

Duplicate of bug #9155.

Deryk Robosson <drobosson>
Group Member
Mon 12 Sep 2005 08:11:47 PM UTC, original submission:  

Not a big issue, but it leads to code that compiles in cscc but not in other compilers (e.g. mcs):

public class Foo {
        public void Bar() {
                int x;
                { int x; }
        }
}

The inner declaration of x hides the outer declaration. In real examples (that's how I ran into the), the second declaration might be e.g. for (int x=0; x<maxx; x++) { ... }


Erich Kitzmüller <ammoq>

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-09-21 drobosson StatusNone Duplicate
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code