#include <iostream>
class AE {
// ...
public:
static const int c6 = 7;
static const int c7 = 31;
};
const int AE::c7; // definition
void f()
{
const int* p1 = &AE::c6; // error: c6 not an lvalue
const int* p2 = &AE::c7; // ok
// ...
std::cout << p1 << p2 << std::endl;
}
int main(){
}
I2luY2x1ZGUgPGlvc3RyZWFtPgpjbGFzcyBBRSB7CiAgICAvLyAuLi4KcHVibGljOgogICAgc3RhdGljIGNvbnN0IGludCBjNiA9IDc7CiAgICBzdGF0aWMgY29uc3QgaW50IGM3ID0gMzE7Cn07Cgpjb25zdCBpbnQgQUU6OmM3OyAgIC8vIGRlZmluaXRpb24KCnZvaWQgZigpCnsKICAgIGNvbnN0IGludCogcDEgPSAmQUU6OmM2OyAgICAvLyBlcnJvcjogYzYgbm90IGFuIGx2YWx1ZQogICAgY29uc3QgaW50KiBwMiA9ICZBRTo6Yzc7ICAgIC8vIG9rCiAgICAvLyAuLi4KICAgIAogICAgc3RkOjpjb3V0IDw8IHAxIDw8IHAyIDw8IHN0ZDo6ZW5kbDsKfQogCmludCBtYWluKCl7CiAgICAJCn0=