https://bugs.llvm.org/show_bug.cgi?id=18074
Marshall Clow (home) <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |INVALID
--- Comment #10 from Marshall Clow (home) <[email protected]> ---
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs