Name conflict of AllValues with libX11 and Xutil.h
While compiling opencascade-7.5.0 against vtk-9.0.1 I encountered following errors:
[10/13] /usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_FFMPEG -DHAVE_GLES2 -DHAVE_VTK -DOCC_CONVERT_SIGNALS -DTKIVtkDraw_EXPORTS -DVTK_OPENGL2_BACKEND -Iinclude/opencascade -isystem /usr/include/freetype2 -isystem /usr/include/vtk-9.0 -std=c++0x -march=haswell -O2 -pipe -fexceptions -fPIC -Wall -Wextra -s -DNo_Exception -fPIC -MD -MT src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o -MF src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o.d -o src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o -c /var/tmp/portage/sci-libs/opencascade-7.5.0/work/occt-V7_5_0/src/IVtkDraw/IVtkDraw_Interactor.cxx
FAILED: src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_FFMPEG -DHAVE_GLES2 -DHAVE_VTK -DOCC_CONVERT_SIGNALS -DTKIVtkDraw_EXPORTS -DVTK_OPENGL2_BACKEND -Iinclude/opencascade -isystem /usr/include/freetype2 -isystem /usr/include/vtk-9.0 -std=c++0x -march=haswell -O2 -pipe -fexceptions -fPIC -Wall -Wextra -s -DNo_Exception -fPIC -MD -MT src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o -MF src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o.d -o src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o -c /var/tmp/portage/sci-libs/opencascade-7.5.0/work/occt-V7_5_0/src/IVtkDraw/IVtkDraw_Interactor.cxx
In file included from /usr/include/GL/glx.h:31,
from /var/tmp/portage/sci-libs/opencascade-7.5.0/work/occt-V7_5_0/src/IVtkDraw/IVtkDraw_Interactor.cxx:22:
/usr/include/vtk-9.0/vtkDataArray.h:602:8: error: expected identifier before numeric constant
602 | struct AllValues
| ^~~~~~~~~
/usr/include/vtk-9.0/vtkDataArray.h:602:8: error: expected unqualified-id before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:417:37: error: expected identifier before numeric constant
417 | bool DoComputeVectorRange(A*, R[2], AllValues);
| ^~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:417:37: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:519:37: error: expected identifier before numeric constant
519 | bool DoComputeVectorRange(A*, R[2], AllValues);
| ^~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:519:37: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected identifier before numeric constant
551 | VTK_DECLARE_VALUERANGE_VALUETYPE(long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected identifier before numeric constant
551 | VTK_DECLARE_VALUERANGE_VALUETYPE(long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected identifier before numeric constant
551 | VTK_DECLARE_VALUERANGE_VALUETYPE(long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected identifier before numeric constant
551 | VTK_DECLARE_VALUERANGE_VALUETYPE(long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected identifier before numeric constant
552 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected identifier before numeric constant
552 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected identifier before numeric constant
552 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected identifier before numeric constant
552 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected identifier before numeric constant
553 | VTK_DECLARE_VALUERANGE_VALUETYPE(long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected identifier before numeric constant
553 | VTK_DECLARE_VALUERANGE_VALUETYPE(long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected identifier before numeric constant
553 | VTK_DECLARE_VALUERANGE_VALUETYPE(long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected identifier before numeric constant
553 | VTK_DECLARE_VALUERANGE_VALUETYPE(long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected identifier before numeric constant
554 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected identifier before numeric constant
554 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected identifier before numeric constant
554 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected identifier before numeric constant
554 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:555:1: error: expected identifier before numeric constant
555 | VTK_DECLARE_VALUERANGE_ARRAYTYPE(vtkDataArray, double)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:555:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:555:1: error: expected identifier before numeric constant
555 | VTK_DECLARE_VALUERANGE_ARRAYTYPE(vtkDataArray, double)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:555:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.txx: In member function ‘bool vtkGenericDataArray<DerivedT, ValueTypeT>::ComputeScalarValueRange(vtkGenericDataArray<DerivedT, ValueTypeT>::ValueType*)’:
/usr/include/vtk-9.0/vtkGenericDataArray.txx:1195:64: error: expected unqualified-id before numeric constant
1195 | static_cast<DerivedT*>(this), ranges, vtkDataArrayPrivate::AllValues{}, Supported{});
| ^~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.txx: In member function ‘bool vtkGenericDataArray<DerivedT, ValueTypeT>::ComputeVectorValueRange(vtkGenericDataArray<DerivedT, ValueTypeT>::ValueType*)’:
/usr/include/vtk-9.0/vtkGenericDataArray.txx:1205:63: error: expected unqualified-id before numeric constant
1205 | static_cast<DerivedT*>(this), range, vtkDataArrayPrivate::AllValues{}, Supported{});
| ^~~~~~~~~
[11/13] /usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_FFMPEG -DHAVE_GLES2 -DHAVE_VTK -DOCC_CONVERT_SIGNALS -DTKIVtkDraw_EXPORTS -DVTK_OPENGL2_BACKEND -Iinclude/opencascade -isystem /usr/include/freetype2 -isystem /usr/include/vtk-9.0 -std=c++0x -march=haswell -O2 -pipe -fexceptions -fPIC -Wall -Wextra -s -DNo_Exception -fPIC -MD -MT src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o -MF src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o.d -o src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o -c /var/tmp/portage/sci-libs/opencascade-7.5.0/work/occt-V7_5_0/src/IVtkDraw/IVtkDraw.cxx
FAILED: src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_FFMPEG -DHAVE_GLES2 -DHAVE_VTK -DOCC_CONVERT_SIGNALS -DTKIVtkDraw_EXPORTS -DVTK_OPENGL2_BACKEND -Iinclude/opencascade -isystem /usr/include/freetype2 -isystem /usr/include/vtk-9.0 -std=c++0x -march=haswell -O2 -pipe -fexceptions -fPIC -Wall -Wextra -s -DNo_Exception -fPIC -MD -MT src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o -MF src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o.d -o src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o -c /var/tmp/portage/sci-libs/opencascade-7.5.0/work/occt-V7_5_0/src/IVtkDraw/IVtkDraw.cxx
In file included from /var/tmp/portage/sci-libs/opencascade-7.5.0/work/occt-V7_5_0/src/InterfaceGraphic/InterfaceGraphic.hxx:39,
from include/opencascade/InterfaceGraphic.hxx:1,
from /var/tmp/portage/sci-libs/opencascade-7.5.0/work/occt-V7_5_0/src/Aspect/Aspect_DisplayConnection.hxx:24,
from include/opencascade/Aspect_DisplayConnection.hxx:1,
from /var/tmp/portage/sci-libs/opencascade-7.5.0/work/occt-V7_5_0/src/OpenGl/OpenGl_GraphicDriver.hxx:22,
from include/opencascade/OpenGl_GraphicDriver.hxx:1,
from /var/tmp/portage/sci-libs/opencascade-7.5.0/work/occt-V7_5_0/src/IVtkDraw/IVtkDraw.cxx:34:
/usr/include/vtk-9.0/vtkDataArray.h:602:8: error: expected identifier before numeric constant
602 | struct AllValues
| ^~~~~~~~~
/usr/include/vtk-9.0/vtkDataArray.h:602:8: error: expected unqualified-id before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:417:37: error: expected identifier before numeric constant
417 | bool DoComputeVectorRange(A*, R[2], AllValues);
| ^~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:417:37: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:519:37: error: expected identifier before numeric constant
519 | bool DoComputeVectorRange(A*, R[2], AllValues);
| ^~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:519:37: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected identifier before numeric constant
551 | VTK_DECLARE_VALUERANGE_VALUETYPE(long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected identifier before numeric constant
551 | VTK_DECLARE_VALUERANGE_VALUETYPE(long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected identifier before numeric constant
551 | VTK_DECLARE_VALUERANGE_VALUETYPE(long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected identifier before numeric constant
551 | VTK_DECLARE_VALUERANGE_VALUETYPE(long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected identifier before numeric constant
552 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected identifier before numeric constant
552 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected identifier before numeric constant
552 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected identifier before numeric constant
552 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:552:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected identifier before numeric constant
553 | VTK_DECLARE_VALUERANGE_VALUETYPE(long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected identifier before numeric constant
553 | VTK_DECLARE_VALUERANGE_VALUETYPE(long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected identifier before numeric constant
553 | VTK_DECLARE_VALUERANGE_VALUETYPE(long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected identifier before numeric constant
553 | VTK_DECLARE_VALUERANGE_VALUETYPE(long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:553:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected identifier before numeric constant
554 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected identifier before numeric constant
554 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected identifier before numeric constant
554 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected identifier before numeric constant
554 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long long)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:554:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:555:1: error: expected identifier before numeric constant
555 | VTK_DECLARE_VALUERANGE_ARRAYTYPE(vtkDataArray, double)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:555:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.h:555:1: error: expected identifier before numeric constant
555 | VTK_DECLARE_VALUERANGE_ARRAYTYPE(vtkDataArray, double)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.h:555:1: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/vtk-9.0/vtkGenericDataArray.txx: In member function ‘bool vtkGenericDataArray<DerivedT, ValueTypeT>::ComputeScalarValueRange(vtkGenericDataArray<DerivedT, ValueTypeT>::ValueType*)’:
/usr/include/vtk-9.0/vtkGenericDataArray.txx:1195:64: error: expected unqualified-id before numeric constant
1195 | static_cast<DerivedT*>(this), ranges, vtkDataArrayPrivate::AllValues{}, Supported{});
| ^~~~~~~~~
/usr/include/vtk-9.0/vtkGenericDataArray.txx: In member function ‘bool vtkGenericDataArray<DerivedT, ValueTypeT>::ComputeVectorValueRange(vtkGenericDataArray<DerivedT, ValueTypeT>::ValueType*)’:
/usr/include/vtk-9.0/vtkGenericDataArray.txx:1205:63: error: expected unqualified-id before numeric constant
1205 | static_cast<DerivedT*>(this), range, vtkDataArrayPrivate::AllValues{}, Supported{});
|
It took me a while to find out and using clang gave me better output, here is part of it:
error: expected unqualified-id
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected parameter declarator
VTK_DECLARE_VALUERANGE_VALUETYPE(long)
^
/usr/include/vtk-9.0/vtkGenericDataArray.h:544:3: note: expanded from macro 'VTK_DECLARE_VALUERANGE_VALUETYPE'
VTK_DECLARE_VALUERANGE_ARRAYTYPE(vtkAOSDataArrayTemplate<ValueType>, ValueType) \
^
/usr/include/vtk-9.0/vtkGenericDataArray.h:530:31: note: expanded from macro 'VTK_DECLARE_VALUERANGE_ARRAYTYPE'
ArrayType*, ValueType[2], vtkDataArrayPrivate::AllValues); \
^
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: error: expected ')'
/usr/include/vtk-9.0/vtkGenericDataArray.h:544:3: note: expanded from macro 'VTK_DECLARE_VALUERANGE_VALUETYPE'
VTK_DECLARE_VALUERANGE_ARRAYTYPE(vtkAOSDataArrayTemplate<ValueType>, ValueType) \
^
/usr/include/vtk-9.0/vtkGenericDataArray.h:530:52: note: expanded from macro 'VTK_DECLARE_VALUERANGE_ARRAYTYPE'
ArrayType*, ValueType[2], vtkDataArrayPrivate::AllValues); \
^
/usr/include/X11/Xutil.h:73:20: note: expanded from macro 'AllValues'
#define AllValues 0x000F
^
/usr/include/vtk-9.0/vtkGenericDataArray.h:551:1: note: to match this '('
/usr/include/vtk-9.0/vtkGenericDataArray.h:544:3: note: expanded from macro 'VTK_DECLARE_VALUERANGE_VALUETYPE'
VTK_DECLARE_VALUERANGE_ARRAYTYPE(vtkAOSDataArrayTemplate<ValueType>, ValueType) \
^
/usr/include/vtk-9.0/vtkGenericDataArray.h:529:65: note: expanded from macro 'VTK_DECLARE_VALUERANGE_ARRAYTYPE'
extern template VTKCOMMONCORE_EXPORT bool DoComputeVectorRange(
In the end there is a conflict of the names with Xutil.h from libX11. I solved my problem with renaming AllValues -> vtkAllValues. Maybe you could consider having this or similar change in your code.