Get the latest tech news

Neither GCC nor Clang are compliant with standard C++


, function types have a "language linkage" associated with them: this is either "C++", "C", or some other implementation-defined language. and the standard very explicitly states that Two function types with different language linkages are distinct types even if they are otherwise identical.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of C++

C++

Photo of gcc

gcc

Photo of Clang

Clang

Related news:

News photo

Cpp2Rust: Translates C++ to safe Rust automatically

News photo

GCC 16.2 Being Planned For Early August Release

News photo

Show HN: C++, Java and C# light-weight-logger