[llvm-bugs] [Bug 18074] Undefined references when using pointer to member functions
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 26 13:32:34 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=18074
Marshall Clow (home) <mclow.lists at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |INVALID
--- Comment #10 from Marshall Clow (home) <mclow.lists at gmail.com> ---
This has been clarified in the latest draft standard. [namespace.std]/6 now
says:
Let F denote a standard library function (16.5.5.4), a standard library static
member function, or an instantiation of a standard library function template.
Unless F is designated an addressable function, the behavior of a C++ program
is unspecified (possibly ill-formed) if it explicitly or implicitly attempts to
form a pointer to F.
[ Note ... end note]
Moreover, the behavior of a C++ program is unspecified (possibly ill-formed) if
it attempts to form a reference to F or if it attempts to form a
pointer-to-member designating either a standard library non-static member
function (16.5.5.5) or an instantiation of a standard library member function
template.
The upshot of all that is that the behavior of your example program is
"unspecified (possibly ill-formed)".
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190626/bde87974/attachment-0001.html>
More information about the llvm-bugs
mailing list