[tlbuild] dvisvgm error with LLVM/Clang

Richard Koch koch at math.uoregon.edu
Sun Jan 11 20:51:25 CET 2015


Peter,

I just tried to compile the latest version of things on
Yosemite, the latest OS X system. This means the
compiler is LLVM/Clang.

I have an error in the log, 

——
In file included from ../../../texk/dvisvgm/dvisvgm-1.9/src/BgColorSpecialHandler.cpp:23:
In file included from ../../../texk/dvisvgm/dvisvgm-1.9/src/ColorSpecialHandler.h:26:
In file included from ../../../texk/dvisvgm/dvisvgm-1.9/src/Color.h:28:
../../../texk/dvisvgm/dvisvgm-1.9/src/VectorIterator.h:100:8: error: reference to non-static member function must be called
                        if (valid)
                            ^~~~~
———

If I look at the file VectorIterator.h near line 100, I find that several previous
functions contain

	if ( valid() ) 
		…

and the error occurs when instead a function contains

	if ( valid )
		…

The problematic code reads

	size_t distanceToLast () const { 
		 if (valid) 
			 return _vector.size()-_pos-1;
		 return 0;
	 }

Ideas?

Dick Koch
koch at math.uoregon.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tlbuild/attachments/20150111/9bd33df3/attachment.html>


More information about the tlbuild mailing list