Feature request for the clang devs: When someone uses C++ constructs in C, don't just say "I don't understand." Rather, add explicit error messages like "static_assert is a C++ construct and not available in C" or so.

Follow

(Rationale behind C compilers detecting valid C++: In mixed-language codebases where C is used to offer a bridging interface, it's easy to accidentally pull in a C++ header in a C header, or forget an __cplusplus.)

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!