On Fri, Oct 06, 2017 at 01:09:02PM +0200, Christian Weisgerber wrote:
> Port build failures on amd64 -current after the clang 5.0 update:
>
> devel/valgrind
> games/qgo
> geo/gpstk
> math/freemat
> x11/kde/libs3
>
> valgrind errors out in configure because it doesn't recognize the
> compiler version:
> configure: error: please use gcc >= 3.0 or clang >= 2.9
>
> The other ports all suffer the same kind of C++ problem:
> gamedialog.cpp:515:52: error: qualified reference to 'QColor' is a
> constructor name rather than a type in this context
>
> handicapSpin->setPaletteBackgroundColor(QColor::QColor("cyan"));
> ^
Everything but valgrind fixed.
You missed taxipilot, but that's because it fails only after kde/libs3 breaks.
The C++ problem is people not knowing their C++.
A constructor for class A gets declared as
A::A(params)
{
...
}
but then, the actual call is just A(params);
somehow, older clang/gcc was happy with the perverted call. Newer clang does
things correctly.