[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bug #14510] cscc allows illegal declaration of variab
From: |
Erich Kitzmüller |
Subject: |
[Pnet-developers] [bug #14510] cscc allows illegal declaration of variables |
Date: |
Mon, 12 Sep 2005 20:11:48 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14510>
Summary: cscc allows illegal declaration of variables
Project: DotGNU Portable.NET
Submitted by: ammoq
Submitted on: Mo 12.09.2005 um 20:11
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
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++) { ... }
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14510>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
- [Pnet-developers] [bug #14510] cscc allows illegal declaration of variables,
Erich Kitzmüller <=