https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87413
--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> --- so current trunk accepts the variant test1.c with __builtin_strlen both C and C++: $ gcc -Wall -S test1.c $ gcc -x c++ -Wall -S test1.c Don't know it that is valid.