Strange g++ curly brace witchcraft