[PATCH] D15686: PR25910: clang allows two var definitions with the same mangled name

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 12 15:34:35 PST 2016


rnk added a subscriber: rnk.
rnk added a comment.

I thought we already addressed this issue with @rjmccall and decided that, if the user intentionally declares extern "C" variables with an _Z prefix, then we know they are intentionally attempting to name some C++ global variable.

I'd rather just warn on all extern "C" declarations starting with _Z, and let users keep the pieces when things break.


http://reviews.llvm.org/D15686





More information about the cfe-commits mailing list