[Bug 204329] clang++ does not resolve reference to STL member function
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Nov 6 14:06:08 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204329
Dimitry Andric <dim at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|Works As Intended |FIXED
--- Comment #10 from Dimitry Andric <dim at FreeBSD.org> ---
(In reply to egilb from comment #8)
> Thank you for your comments. The unresolved reference problem
> seems not to be a FreeBSD issue, but shouldn't clang be portable?
Clang is portable, your code is not.
> clang 3.4.1 on Linux does not report the member function as unresolved,
> using -stdlib=libc++ or -stdlib=libstdc++ does not matter.
This would depend entirely on which version of libc++ you are using. IIRC at
some point the implementation of std::string::c_str() was made into an inline
function, and from that point onward, you cannot take its address anymore.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list