Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jan 2017 07:15:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216060] graphics/fracplanet: fails to build with libc++ 4.0
Message-ID:  <bug-216060-13-7MExavgn7H@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-216060-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-216060-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=3D216060

--- Comment #1 from Jan Beich (mail not working) <jbeich@FreeBSD.org> ---
(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=3D291921&view=3Drev
>
> 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 =3D unsigned char; std::__cxx11::string =3D
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 =3D short unsigned int; std::__cxx11::string =3D
std::__cxx11::basic_string<char>]':
image.cpp:104:28: warning: narrowing conversion of '(((int)(* it)) >> 8)' f=
rom
'int' to 'uchar {aka unsigned char}' inside { } [-Wnarrowing]
    const uchar p[2]=3D{((*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]=3D{((*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 =3D ByteRGBA; std::__cxx11::string =3D
std::__cxx11::basic_string<char>]':
image.cpp:135:10: error: cannot convert 'std::ofstream {aka
std::basic_ofstream<char>}' to 'bool' inreturn
   return out;
          ^~~

--=20
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-216060-13-7MExavgn7H>