Search code examples
cgccclangundefined-behavior

(Where) Does clang document implementation-defined behavior?


Implementation-defined behaviors in C are unspecified behaviors for which each conforming implementation must document its choice.

I found such documentations easily for gcc here or Microsoft C here, but I can't find any such documentation for clang.

Am I searching wrong or is there no such thing?


Solution

  • This ticket https://github.com/llvm/llvm-project/issues/11644 is still opened (for many years now) so it seems that clang doesn't explicitly specify implementation defined behaviour.

    For most cases I would bet that it's the same as GCC, though.