Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
local classes cannot be used to declare 'extern' variables
A local class or structure cannot be used to declare extern
variables.
The following sample generates C2624:
// C2624.cpp
int main() {
struct C {};
extern C ac; // C2624
}