c++/7008: unexpected error message "var was not declared in this scope"
lerdsuwa@gcc.gnu.org
lerdsuwa@gcc.gnu.org
Thu Jul 11 07:42:00 GMT 2002
Synopsis: unexpected error message "var was not declared in this scope"
State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Thu Jul 11 07:39:20 2002
State-Changed-Why:
Not a bug. According to the standard, section 9.8p1:
Declarations in a local class can use only type names,
static variables, extern variables and functions, and
enumerators from the enclosing scope.
The 'var' which is a function parameter is not allowed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7008
More information about the Gcc-bugs
mailing list