Description
Jan Beich
2017-01-14 03:15:15 UTC
(In reply to Dimitry Andric from bug 216034 comment #6) > Note that the upstream author has reverted the commit causing this here: > > http://llvm.org/viewvc/llvm-project?rev=291921&view=rev > > and has also merged it to the 4.0 branch. I will import the upstream > branch into the projects/clang400-import branch soon. lang/gcc6 and later versions are also affected. tests/libsample/simplefile.cpp: In member function 'bool SimpleFile::exists() const': tests/libsample/simplefile.cpp:93:12: error: cannot convert 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in return return ifile; ^~~~~ tests/libsample/simplefile.cpp: In static member function 'static bool SimpleFile::exists(const char*)': tests/libsample/simplefile.cpp:100:12: error: cannot convert 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in return return ifile; ^~~~~ This port now builds fine with clang, after r312200 in the clang400-import branch. Clang 6 defaults to C++14, so pkg-fallout@ will complain soon. Created attachment 190228 [details]
shiboken clang6
This patch fixes build for me. It was adopted by Gentoo, upstream seems dead.
see also Bug #226331. Maintainer timeout? *** Bug 226331 has been marked as a duplicate of this bug. *** Comment on attachment 190228 [details] shiboken clang6 Looks good. Other options (see bug 216080): bool(ifile), !ifile.fail() or USE_CXXSTD=gnu++98. A commit references this bug: Author: wg Date: Tue Apr 24 14:02:13 UTC 2018 New revision: 468212 URL: https://svnweb.freebsd.org/changeset/ports/468212 Log: devel/shiboken: fix build with gcc6 PR: 216047 Submitted by: jbeich Changes: head/devel/shiboken/files/patch-tests_libsample_simplefile.cpp |