[Bug 20] volatile introduces new scope

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 6 09:26:07 PST 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=20


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com




------- Comment #1 from smjg at iname.com  2006-03-06 11:26 -------
All runtime control statements of this kind introduce a scope.  What bit of the
spec states that volatile is any different?

As I understand it:
- volatile_03_A is correctly classified
- volatile_03_B is incorrectly classified, because i is out of scope outside of
the volatile statement
- volatile_03_C is correctly classified, but for a different reason, namely "A
local symbol's name, however, must be unique within the function."


-- 




More information about the Digitalmars-d-bugs mailing list