XML_Parser.cc:394:39: error: invalid operands to binary expression ('std::ifstream' (aka 'basic_ifstream<char>') and 'int') if ((mp_stream == 0) || (*mp_stream == 0)) ~~~~~~~~~~ ^ ~ Ac3d.cc:894:9: error: invalid operands to binary expression ('std::ifstream' (aka 'basic_ifstream<char>') and 'int') if (is == 0) ~~ ^ ~ build log: http://sprunge.us/RQDJ 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. XML_Parser.cc: In member function 'void Vamos_Media::XML_Parser::read(std::__cxx11::string)': XML_Parser.cc:394:39: error: no match for 'operator==' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') if ((mp_stream == 0) || (*mp_stream == 0)) ~~~~~~~~~~~^~~~ Ac3d.cc: In constructor 'Vamos_Media::Ac3d::Ac3d(std::__cxx11::string, double, const Vamos_Geometry::Three_Vector&, const Vamos_Geometry::Three_Vector&)': Ac3d.cc:894:9: error: no match for 'operator==' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') if (is == 0) ~~~^~~~
Clang 6 defaults to C++14, so pkg-fallout@ will complain soon.
Created attachment 190532 [details] svn-diff-games_vamos
Update to vamos 0.8.2 available, but the problem is the same.
A commit references this bug: Author: swills Date: Sun May 27 22:17:59 UTC 2018 New revision: 471010 URL: https://svnweb.freebsd.org/changeset/ports/471010 Log: games/vamos: fix build with lang/gcc6 or later PR: 216077 Submitted by: w.schwarzenfeld@utanet.at Reported by: jbeich Changes: head/games/vamos/Makefile
Committed, thanks!