I attempted to compile the following code using g++ and I got the following error:
$ g++ test.cpp
/tmp/ccjE1ooy.o: In function `A::A()':
test.cpp:(.text._ZN1AC2Ev[_ZN1AC5Ev]+0x16): undefined reference to `A::allA'
/tmp/ccjE1ooy.o: In function `A::~A()':
test.cpp:(.text._ZN1AD2Ev[_ZN1AD5Ev]+0x1d): undefined reference to `A::allA'
test.cpp:(.text._ZN1AD2Ev[_ZN1AD5Ev]+0x40): undefined reference to `A::allA'
test.cpp:(.text._ZN1AD2Ev[_ZN1AD5Ev]+0x6f): undefined reference to `A::allA'
test.cpp:(.text._ZN1AD2Ev[_ZN1AD5Ev]+0xa8): undefined reference to `A::allA'
/tmp/ccjE1ooy.o:test.cpp:(.text._ZN1AD2Ev[_ZN1AD5Ev]+0xc3): more undefined references to `A::allA' follow
collect2: ld returned 1 exit status