[PATCH] D85878: [OpenMP] Context selector extensions for return value overloading
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 13 20:45:50 PDT 2020
jdoerfert added a comment.
In D85878#2217408 <https://reviews.llvm.org/D85878#2217408>, @JonChesterfield wrote:
> If I recall correctly, &foo with variants of foo returns a pointer to the base.
Correct.
> If we have no base, and disable_implicit_base, what does &foo yield? It should probably be a compilation error with some descriptive message
undefined symbol foo, or whatever message we emit if you use a variable that doesn't exist. A function definition `bar` inside of `begin/end declare variant` is *not* a function `bar`. It is a variant of a base function that exists or that we assume to exist (=implicitly declare).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85878/new/
https://reviews.llvm.org/D85878
More information about the llvm-commits
mailing list