[Bug 20] New: volatile introduces new scope
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 6 07:31:13 PST 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=20
Summary: volatile introduces new scope
Product: D
Version: 0.148
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: walter at digitalmars.com
ReportedBy: thomas-dloop at kuehne.cn
void main(){
int i = 1;
volatile int i = 2; // should fail to compile
}
Testcases:
http://dstress.kuehne.cn/run/v/volatile_03_A.d
http://dstress.kuehne.cn/run/v/volatile_03_B.d
http://dstress.kuehne.cn/nocompile/v/volatile_03_C.d
--
More information about the Digitalmars-d-bugs
mailing list