> so it's been kinda nice that this is catching bugs in C++ programs.

I agreed. I will see what bazel guys say about the usage of strdupa. Maybe they are willing to remove strdupa.

> Maybe there's some way we can fix the C++ const issue but make it
produce warnings when strdupa is used in both C and C++...?

I have no idea why '-fno-permissive' does not work for me. But whatever, it is OK that the patch can not be merged upstream.

xhe