common.cpp: call of overloaded 'pointer()' is ambiguous

Brian Gough <[email protected]> Wed, 23 Mar 2011 10:26:28 +0000
Newsgroups gmane.comp.gnu.ccscript.devel
Message-ID <438vw66skr.wl%[email protected]>
Hi. I got the error below compiling the latest ccscript-4.2.0 with
ucommon-4.2.0.  

The full log is at http://chapters.gnu.org/~bjg/gsrc/logs/ccscript.txt

Tested with gcc-4.3.2 and gcc-4.4.5.

ake[3]: Entering directory `/home/bjg/gsrc.main/gnu/ccscript/work/ccscript-4.2.0/src'
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    -I../inc  -Wno-long-long -DNEW_STDCPP -pthread -fno-check-new -finline -fvisibility=hidden -DUCOMMON_VISIBILITY=1 -I/home/bjg/gnu/include -g -O2 -MT common.lo -MD -MP -MF .deps/common.Tpo -c -o common.lo common.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -Wno-long-long -DNEW_STDCPP -pthread -fno-check-new -finline -fvisibility=hidden -DUCOMMON_VISIBILITY=1 -I/home/bjg/gnu/include -g -O2 -MT common.lo -MD -MP -MF .deps/common.Tpo -c common.cpp  -fPIC -DPIC -o .libs/common.o
common.cpp: In constructor 'ucc::script::script()':
common.cpp:287: error: call of overloaded 'pointer()' is ambiguous
/home/bjg/gnu/include/ucommon/generics.h:104: note: candidates are: ucc::pointer<T>::pointer(T*) [with T = ucc::script]
/home/bjg/gnu/include/ucommon/generics.h:99: note:                 ucc::pointer<T>::pointer() [with T = ucc::script]
common.cpp: In static member function 'static ucc::script* ucc::script::append(ucc::script*, const char*, ucc::script*)':
common.cpp:518: error: 'getline' is not a member of 'ucc::String'
common.cpp:586: error: no matching function for call to 'ucc::script::find(ucc::script&, const char*&)'
common.cpp:330: note: candidates are: static ucc::script::keyword* ucc::script::find(const char*)
common.cpp:397: note:                 static ucc::script::header* ucc::script::find(ucc::script*, const char*)
common.cpp:712: error: no matching function for call to 'ucc::script::find(ucc::script&, const char*&)'
common.cpp:330: note: candidates are: static ucc::script::keyword* ucc::script::find(const char*)
common.cpp:397: note:                 static ucc::script::header* ucc::script::find(ucc::script*, const char*)
make[3]: *** [common.lo] Error 1