[PATCH] D17362: [Sema] PR23090 Crash when return type or parameter types for extern "C" functions don't have external linkage

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 7 11:49:02 PDT 2016


rsmith requested changes to this revision.
rsmith added a comment.
This revision now requires changes to proceed.

Why do you think this is ill-formed? Using a type with internal linkage as the type of an extern "C" function is explicitly permitted by the C++ standard. [basic.link]p8 says:

"A type without linkage shall not be used as the type of a variable or function with external linkage unless the entity has C language linkage [...]."


http://reviews.llvm.org/D17362





More information about the cfe-commits mailing list