[PATCH] D45383: Strip reference from a va_list object in C when merging parameter types.

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 9 11:32:04 PDT 2018


efriedma added a comment.

> I don't see redeclaring the latter 3 as being disallowed,

It is in fact disallowed by the standard, in the section describing va_start/va_arg/va_end/va_copy: "If a macro definition is suppressed in order to access an actual function, or a program defines an external identifier with the same name, the behavior is undefined."


Repository:
  rC Clang

https://reviews.llvm.org/D45383





More information about the cfe-commits mailing list