This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
> Paragraph one of [class.local] says > > Declarations in a local class can use only type names, > static variables, extern variables and functions, and > enumerators from the enclosing scope. > > The name 'i' is none of these. No, but it isn't from the enclosing scope, either. This is a restriction on the names from the enclosing scope, not on access to names in general.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |