[PATCH] D45383: Limit types of builtins that can be redeclared.
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 10 11:08:38 PDT 2018
efriedma added inline comments.
================
Comment at: test/Sema/builtin-redecl.cpp:9
+// Overloading a builtin is acceptable in C++.
+void __builtin_va_copy(double d);
+#endif
----------------
We don't want to allow this; in particular, for builtins with custom type-checking, we have no way to correctly resolve which overload to call. Probably Sema::CheckOverload should be checking canBeRedeclared.
https://reviews.llvm.org/D45383
More information about the cfe-commits
mailing list