This gcc version claims support for this attribute, but actually doesn't support it and returns unclear errors when it is used, e.g. $ echo '[[deprecated]] int x;' | g++-5 -fsyntax-only -x c++ - <stdin>:1:1: error: expected unqualified-id before ‘[’ token so disable its use with gcc < 6.