[xsd-users] xsd "two phase lookup" problem

Paul Harrison paul.harrison at manchester.ac.uk
Fri Nov 1 06:40:18 EDT 2013


Hi,

having being “forced” into using clang by an recent upgrade OS X 10.9 I get the error at the end of the message - I believe that this is an instance of clang being stricter about two phase name lookup (http://blog.llvm.org/2009/12/dreaded-two-phase-name-lookup.html) and is fixed as suggested by the compiler…. (though to be honest I have not checked if this breaks other compilers, gcc for instance)

Regards,
	Paul.

In file included from /opt/local/include/xsd/cxx/zc-istream.hxx:90:
/opt/local/include/xsd/cxx/zc-istream.txx:35:7: error: use of undeclared identifier 'setg'
      setg (b, b, e);
      ^
      this->
/opt/local/include/xsd/cxx/zc-istream.txx:17:7: note: in instantiation of member function 'xsd::cxx::zc_streambuf<char>::init' requested here
      init ();
      ^
/opt/local/include/xsd/cxx/zc-istream.txx:64:11: note: in instantiation of member function 'xsd::cxx::zc_streambuf<char>::zc_streambuf' requested here
        : buf_ (str)
          ^
/opt/local/include/xsd/cxx/zc-istream.txx:81:11: note: in instantiation of member function 'xsd::cxx::zc_istream_base<char>::zc_istream_base' requested here
        : zc_istream_base<C> (str),
          ^
/opt/local/include/xsd/cxx/tree/parsing/unsigned-int.hxx:69:23: note: in instantiation of member function 'xsd::cxx::zc_istream<char>::zc_istream' requested here
        zc_istream<C> is (tmp);
                      ^
/opt/local/include/xsd/cxx/tree/parsing/unsigned-int.hxx:44:16: note: in instantiation of member function 'xsd::cxx::tree::traits<unsigned int, char, 0>::create' requested here
        return create (text_content<C> (e), 0, f, c);
               ^
/Users/pharriso/Work/jbe/emerlin/log/source/log_schema.C:386:30: note: in instantiation of member function 'xsd::cxx::tree::traits<unsigned int, char, 0>::create' requested here
            this->code_.set (code_traits::create (i, f, this));
                             ^
/usr/include/c++/4.2.1/streambuf:504:7: note: must qualify identifier to find this declaration in dependent base class
      setg(char_type* __gbeg, char_type* __gnext, char_type* __gend)
      ^
1 error generated.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2774 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20131101/d3b5bf55/smime.bin


More information about the xsd-users mailing list