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

Submitted by:  Erich Kitzmüller <ammoq>
Submitted on:  Mon 12 Sep 2005 08:11:47 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Duplicate
Privacy: PublicAssigned to: None
Open/Closed: Closed

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

Duplicate of bug #9155.

Deryk Robosson <drobosson>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 21 Sep 2005 12:59:32 PM UTCdrobossonStatusNone=>Duplicate
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1