g++ version bag resolution