Hi, further analysis shows the following:
* It doesn't matter which -std= version I'm using. All c++98/03/11/14 show the same error. Only with gcc-6, not up to gcc-5. * pstoedit-3.70/src/drvdxf.cpp works as follows: 215: declaration as a static const class member: static const unsigned short numberOfColors; 224: usage in a static member function (DXFColor::getDXFColor(....)): for (unsigned int i = firstcolor; i < numberOfColors; i++) { ... i.e. declared, but still not defined 505: definition of the static const class member from l.215: const unsigned short DXFColor::numberOfColors = sizeof(DXFColor::DXFColors) / sizeof(DXFColor::rgbcolor); 548: usage that triggers the GCC6 error (in another class declaration): Layer * LayerTable[DXFColor::numberOfColors]; * When I _remove_ the use of numberOfColors in l.224, the error goes away. A fix in pstoedit would be to move the definition "up", before the "illegal" use of the constant in 224. Still not sure if this is the right thing to do or if it is a bug in GCC 6? Any suggestion? Thanks in advance, Roland