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

don hinton via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 17 18:04:09 PST 2016


hintonda added a comment.

Here's an example of when this will cause a crash:

namespace {
Struct G;
extern "C" G *f(); // has external linkage
G *f();            // will assert since it has internal linkage because of G and doesn't match previous declaration
}


http://reviews.llvm.org/D17362





More information about the cfe-commits mailing list