g++ protection