Originally Posted by itCbitC Take a look here, which says that __COUNTER__ macro is found only in gcc release 4.3 and above. I don't think that is correct. Clang Language Extensions