Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Nov 2015 14:06:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 204329] clang++ does not resolve reference to STL member function
Message-ID:  <bug-204329-13-MhvnwCoxpI@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-204329-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-204329-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204329

Dimitry Andric <dim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|Works As Intended           |FIXED

--- Comment #10 from Dimitry Andric <dim@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204329-13-MhvnwCoxpI>