image.cpp:88:10: error: no viable conversion from returned value of type 'std::ofstream' (aka 'basic_ofstream<char>') to function return type 'bool' return out; ^~~ image.cpp:118:10: error: no viable conversion from returned value of type 'std::ofstream' (aka 'basic_ofstream<char>') to function return type 'bool' return out; ^~~ image.cpp:135:10: error: no viable conversion from returned value of type 'std::ofstream' (aka 'basic_ofstream<char>') to function return type 'bool' return out; ^~~ build log: http://sprunge.us/MOgI regressed by: https://github.com/llvm-mirror/libcxx/commit/3a1b90a866b6
(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. image.cpp: In member function 'bool Raster<T>::write_pgmfile(const string&, Progress*) const [with T = unsigned char; std::__cxx11::string = std::__cxx11::basic_string<char>]': image.cpp:88:10: error: cannot convert 'std::ofstream {aka std::basic_ofstream<char>}' to 'bool' in return return out; ^~~ image.cpp: In member function 'bool Raster<T>::write_pgmfile(const string&, Progress*) const [with T = short unsigned int; std::__cxx11::string = std::__cxx11::basic_string<char>]': image.cpp:104:28: warning: narrowing conversion of '(((int)(* it)) >> 8)' from 'int' to 'uchar {aka unsigned char}' inside { } [-Wnarrowing] const uchar p[2]={((*it)>>8),(*it)}; ~~~~~~^~~~ image.cpp:104:34: warning: narrowing conversion of '(ushort)(* it)' from 'ushort {aka short unsigned int}' to 'uchar {aka unsigned char}' inside { } [-Wnarrowing] const uchar p[2]={((*it)>>8),(*it)}; ~^~~~ image.cpp:118:10: error: cannot convert 'std::ofstream {aka std::basic_ofstream<char>}' to 'bool' inreturn return out; ^~~ image.cpp: In member function 'bool Raster<T>::write_ppmfile(const string&, Progress*) const [with T = ByteRGBA; std::__cxx11::string = std::__cxx11::basic_string<char>]': image.cpp:135:10: error: cannot convert 'std::ofstream {aka std::basic_ofstream<char>}' to 'bool' inreturn return out; ^~~
Clang 6 defaults to C++14, so pkg-fallout@ will complain soon.
Appears to have been fixed during update. http://beefy11.nyi.freebsd.org/data/latest-per-pkg/fracplanet/0.5.1/head-i386-default.log http://beefy12.nyi.freebsd.org/data/latest-per-pkg/fracplanet/0.5.1/head-amd64-default.log *** This bug has been marked as a duplicate of bug 229874 ***