[xsd-users] parser.txx undeclared identifiers in templates when compiling with LLVM 3.0 in Xcode

Vaughan Roberts Vaughan at Roberts.name
Thu Oct 20 21:31:08 EDT 2011


I have had an issue when trying to compile a program which uses xsd-parser
with Xcode4.3 using the LLVM 3.0 compiler.  In the parser.txx file I get
about 17 errors relating to undeclared identifiers.  These appear to be
identifiers that are defined in templates in the same file and these errors
are probably occurring due to the two-phase name lookup issue discussed in:
blog.llvm.org/2009/12/dreaded-two-phase-name-lookup.html 

 

The resolution is quite simple llvm requires that each name be preceded with
'this->'.

E.g. _attribute_impl needs to be changed to this->_attribute_impl

 

Apparently llvm is a bit more fussy than gcc on this issue, but once that is
done the compiler is happy.

 

Best regards,
Vaughan


Mob: 0412 122 362

 



More information about the xsd-users mailing list