[sigc] Re: [Bug 147391] - test_lambda does not compile with SUN Forte 5.5



Hi Damien!

Could you please send me the sigc++config.h that was generated?
Obviously, the configure check I've added doesn't work.

I'm attaching the configure check as a source file in case anyone has an idea. It succeeds with gcc and MSVC. Obviously, it also succeeds with the SUN Forte but it should fail because it simulates the code of the lambda operator overloads which doesn't compile.

Thanks!

 Martin


Am 23.07.2004 19:10:05 schrieb(en) Damien Carbery:
It failed in test_lambda.c
Log attached.

bugzilla-daemon bugzilla gnome org wrote:
http://bugzilla.gnome.org/show_bug.cgi?id=147391
libsigc++ | tests | Ver: 2.0

martin-ml hippogriff de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
CC| |Damien Carbery Sun COM
             Status|UNCONFIRMED                 |NEEDINFO



------- Additional Comments From martin-ml hippogriff de 2004-07-23 11:45 -------
Okay, new test tarball uploaded to:
http://www.hippogriff.de/libsigc++-2.0.3-test-forte.tar.gz

Damien, could you please make a try, once again? With any luck, we should get
past test_lambda now.
Thanks!

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

--
Damien Carbery
Desktop Release Engineer
Sun Microsystems

Email: damien carbery sun com
Ph: +353 1 819-9218
Ext: x 19218

Dublin Bus and Irish Rail timetables for your Palm:
http://bussched.sourceforge.net> make  all-recursive
make[1]: Entering directory `/gnome/2.4/libsig++/libsigc++-2.0.3- test-forte'
Making all in sigc++
make[2]: Entering directory `/gnome/2.4/libsig++/libsigc++-2.0.3- test-forte/sigc++'
make  all-am
make[3]: Entering directory `/gnome/2.4/libsig++/libsigc++-2.0.3- test-forte/sigc++'
source='signal.cc' object='signal.lo' libtool=yes \
depfile='.deps/signal.Plo' tmpdepfile='.deps/signal.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile CC -DHAVE_CONFIG_H   -I.. -I..
-DG_HAVE_ISO_VARARGS -DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include
-g -c -o signal.lo signal.cc
mkdir .libs
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c signal.cc  -KPIC
-DPIC -o .libs/signal.o
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c signal.cc -o
signal.o >/dev/null 2>&1
source='signal_base.cc' object='signal_base.lo' libtool=yes \
depfile='.deps/signal_base.Plo' tmpdepfile='.deps/signal_base.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile CC -DHAVE_CONFIG_H   -I.. -I..
-DG_HAVE_ISO_VARARGS -DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include
-g -c -o signal_base.lo signal_base.cc
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c signal_base.cc
-KPIC -DPIC -o .libs/signal_base.o
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c signal_base.cc - o
signal_base.o >/dev/null 2>&1
source='trackable.cc' object='trackable.lo' libtool=yes \
depfile='.deps/trackable.Plo' tmpdepfile='.deps/trackable.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile CC -DHAVE_CONFIG_H   -I.. -I..
-DG_HAVE_ISO_VARARGS -DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include
-g -c -o trackable.lo trackable.cc
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c trackable.cc
-KPIC -DPIC -o .libs/trackable.o
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c trackable.cc -o
trackable.o >/dev/null 2>&1
source='connection.cc' object='connection.lo' libtool=yes \
depfile='.deps/connection.Plo' tmpdepfile='.deps/connection.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile CC -DHAVE_CONFIG_H   -I.. -I..
-DG_HAVE_ISO_VARARGS -DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include
-g -c -o connection.lo connection.cc
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c connection.cc
-KPIC -DPIC -o .libs/connection.o
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c connection.cc -o
connection.o >/dev/null 2>&1
source='functors/slot.cc' object='slot.lo' libtool=yes \
depfile='.deps/slot.Plo' tmpdepfile='.deps/slot.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile CC -DHAVE_CONFIG_H   -I.. -I..
-DG_HAVE_ISO_VARARGS -DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include
-g -c -o slot.lo `test -f 'functors/slot.cc' || echo
'./'`functors/slot.cc
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c functors/slot.cc
-KPIC -DPIC -o .libs/slot.o
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c functors/slot.cc
-o slot.o >/dev/null 2>&1
source='functors/slot_base.cc' object='slot_base.lo' libtool=yes \
depfile='.deps/slot_base.Plo' tmpdepfile='.deps/slot_base.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile CC -DHAVE_CONFIG_H   -I.. -I..
-DG_HAVE_ISO_VARARGS -DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include
-g -c -o slot_base.lo `test -f 'functors/slot_base.cc' || echo
'./'`functors/slot_base.cc
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c
functors/slot_base.cc  -KPIC -DPIC -o .libs/slot_base.o
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c
functors/slot_base.cc -o slot_base.o >/dev/null 2>&1
source='adaptors/lambda/lambda.cc' object='lambda.lo' libtool=yes \
depfile='.deps/lambda.Plo' tmpdepfile='.deps/lambda.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile CC -DHAVE_CONFIG_H   -I.. -I..
-DG_HAVE_ISO_VARARGS -DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include
-g -c -o lambda.lo `test -f 'adaptors/lambda/lambda.cc' || echo
'./'`adaptors/lambda/lambda.cc
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c
adaptors/lambda/lambda.cc  -KPIC -DPIC -o .libs/lambda.o
 CC -DHAVE_CONFIG_H -I.. -I.. -DG_HAVE_ISO_VARARGS
-DG_IMPLEMENT_INLINES -I/opt/gnome-2.7/include -g -c
adaptors/lambda/lambda.cc -o lambda.o >/dev/null 2>&1
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o libsigc-2.0.la -rpath /usr/local/lib
signal.lo signal_base.lo trackable.lo connection.lo slot.lo
slot_base.lo lambda.lo
CC -G -nolib -hlibsigc-2.0.so.0 -o .libs/libsigc-2.0.so.0.0.0
.libs/signal.o .libs/signal_base.o .libs/trackable.o
.libs/connection.o .libs/slot.o .libs/slot_base.o .libs/lambda.o
-R/opt/gnome-2.7/lib -L/opt/gnome-2.7/lib
(cd .libs && rm -f libsigc-2.0.so.0 && ln -s libsigc-2.0.so.0.0.0
libsigc-2.0.so.0)
(cd .libs && rm -f libsigc-2.0.so && ln -s libsigc-2.0.so.0.0.0
libsigc-2.0.so)
CC -xar -o .libs/libsigc-2.0.a   signal.o signal_base.o trackable.o
connection.o slot.o slot_base.o lambda.o
creating libsigc-2.0.la
(cd .libs && rm -f libsigc-2.0.la && ln -s ../libsigc-2.0.la
libsigc-2.0.la)
make[3]: Leaving directory `/gnome/2.4/libsig++/libsigc++-2.0.3-test- forte/sigc++' make[2]: Leaving directory `/gnome/2.4/libsig++/libsigc++-2.0.3-test- forte/sigc++'
Making all in tests
make[2]: Entering directory `/gnome/2.4/libsig++/libsigc++-2.0.3- test-forte/tests'
source='test_trackable.cc' object='test_trackable.o' libtool=no \
depfile='.deps/test_trackable.Po' tmpdepfile='.deps/test_trackable. TPo'
\
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_trackable.o test_trackable.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_trackable  test_trackable.o
../sigc++/libsigc-2.0.la
mkdir .libs
CC -g -i -o .libs/test_trackable test_trackable.o
-L/opt/gnome-2.7/lib ../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib
-R/opt/gnome-2.7/lib
creating test_trackable
source='test_deduce_result_type.cc' object='test_deduce_result_type. o'
libtool=no \
depfile='.deps/test_deduce_result_type.Po'
tmpdepfile='.deps/test_deduce_result_type.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_deduce_result_type.o
test_deduce_result_type.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_deduce_result_type
test_deduce_result_type.o ../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_deduce_result_type test_deduce_result_type.o
-L/opt/gnome-2.7/lib ../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib
-R/opt/gnome-2.7/lib
creating test_deduce_result_type
source='test_functor_trait.cc' object='test_functor_trait.o'
libtool=no \
depfile='.deps/test_functor_trait.Po'
tmpdepfile='.deps/test_functor_trait.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_functor_trait.o
test_functor_trait.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_functor_trait  test_functor_trait.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_functor_trait test_functor_trait.o
-L/opt/gnome-2.7/lib ../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib
-R/opt/gnome-2.7/lib
creating test_functor_trait
source='test_mem_fun.cc' object='test_mem_fun.o' libtool=no \
depfile='.deps/test_mem_fun.Po' tmpdepfile='.deps/test_mem_fun.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_mem_fun.o test_mem_fun.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_mem_fun  test_mem_fun.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_mem_fun test_mem_fun.o  -L/opt/gnome-2.7/lib
../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib -R/opt/gnome-2.7/lib
creating test_mem_fun
source='test_ptr_fun.cc' object='test_ptr_fun.o' libtool=no \
depfile='.deps/test_ptr_fun.Po' tmpdepfile='.deps/test_ptr_fun.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_ptr_fun.o test_ptr_fun.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_ptr_fun  test_ptr_fun.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_ptr_fun test_ptr_fun.o  -L/opt/gnome-2.7/lib
../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib -R/opt/gnome-2.7/lib
creating test_ptr_fun
source='test_slot.cc' object='test_slot.o' libtool=no \
depfile='.deps/test_slot.Po' tmpdepfile='.deps/test_slot.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_slot.o test_slot.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_slot  test_slot.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_slot test_slot.o  -L/opt/gnome-2.7/lib
../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib -R/opt/gnome-2.7/lib
creating test_slot
source='test_signal.cc' object='test_signal.o' libtool=no \
depfile='.deps/test_signal.Po' tmpdepfile='.deps/test_signal.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_signal.o test_signal.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_signal  test_signal.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_signal test_signal.o  -L/opt/gnome-2.7/lib
../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib -R/opt/gnome-2.7/lib
creating test_signal
source='test_accumulated.cc' object='test_accumulated.o' libtool=no \
depfile='.deps/test_accumulated.Po'
tmpdepfile='.deps/test_accumulated.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_accumulated.o
test_accumulated.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_accumulated  test_accumulated.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_accumulated test_accumulated.o
-L/opt/gnome-2.7/lib ../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib
-R/opt/gnome-2.7/lib
creating test_accumulated
source='test_disconnect.cc' object='test_disconnect.o' libtool=no \
depfile='.deps/test_disconnect.Po' tmpdepfile='.deps/test_disconnect. TPo'
\
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_disconnect.o
test_disconnect.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_disconnect  test_disconnect.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_disconnect test_disconnect.o
-L/opt/gnome-2.7/lib ../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib
-R/opt/gnome-2.7/lib
creating test_disconnect
source='test_disconnect_during_emit.cc'
object='test_disconnect_during_emit.o' libtool=no \
depfile='.deps/test_disconnect_during_emit.Po'
tmpdepfile='.deps/test_disconnect_during_emit.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_disconnect_during_emit.o
test_disconnect_during_emit.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_disconnect_during_emit
test_disconnect_during_emit.o ../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_disconnect_during_emit
test_disconnect_during_emit.o  -L/opt/gnome-2.7/lib
../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib -R/opt/gnome-2.7/lib
creating test_disconnect_during_emit
source='test_bind.cc' object='test_bind.o' libtool=no \
depfile='.deps/test_bind.Po' tmpdepfile='.deps/test_bind.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_bind.o test_bind.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_bind  test_bind.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_bind test_bind.o  -L/opt/gnome-2.7/lib
../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib -R/opt/gnome-2.7/lib
creating test_bind
source='test_bind_return.cc' object='test_bind_return.o' libtool=no \
depfile='.deps/test_bind_return.Po'
tmpdepfile='.deps/test_bind_return.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_bind_return.o
test_bind_return.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_bind_return  test_bind_return.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_bind_return test_bind_return.o
-L/opt/gnome-2.7/lib ../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib
-R/opt/gnome-2.7/lib
creating test_bind_return
source='test_retype_return.cc' object='test_retype_return.o'
libtool=no \
depfile='.deps/test_retype_return.Po'
tmpdepfile='.deps/test_retype_return.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_retype_return.o
test_retype_return.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_retype_return  test_retype_return.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_retype_return test_retype_return.o
-L/opt/gnome-2.7/lib ../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib
-R/opt/gnome-2.7/lib
creating test_retype_return
source='test_hide.cc' object='test_hide.o' libtool=no \
depfile='.deps/test_hide.Po' tmpdepfile='.deps/test_hide.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_hide.o test_hide.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_hide  test_hide.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_hide test_hide.o  -L/opt/gnome-2.7/lib
../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib -R/opt/gnome-2.7/lib
creating test_hide
source='test_retype.cc' object='test_retype.o' libtool=no \
depfile='.deps/test_retype.Po' tmpdepfile='.deps/test_retype.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_retype.o test_retype.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_retype  test_retype.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_retype test_retype.o  -L/opt/gnome-2.7/lib
../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib -R/opt/gnome-2.7/lib
creating test_retype
source='test_compose.cc' object='test_compose.o' libtool=no \
depfile='.deps/test_compose.Po' tmpdepfile='.deps/test_compose.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_compose.o test_compose.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_compose  test_compose.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_compose test_compose.o  -L/opt/gnome-2.7/lib
../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib -R/opt/gnome-2.7/lib
creating test_compose
source='test_exception_catch.cc' object='test_exception_catch.o'
libtool=no \
depfile='.deps/test_exception_catch.Po'
tmpdepfile='.deps/test_exception_catch.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_exception_catch.o
test_exception_catch.cc
/bin/bash ../libtool --mode=link CC  -g  -i -L/opt/gnome-2.7/lib
-R/opt/gnome-2.7/lib -o test_exception_catch  test_exception_catch.o
../sigc++/libsigc-2.0.la
CC -g -i -o .libs/test_exception_catch test_exception_catch.o
-L/opt/gnome-2.7/lib ../sigc++/.libs/libsigc-2.0.so -R/usr/local/lib
-R/opt/gnome-2.7/lib
creating test_exception_catch
source='test_lambda.cc' object='test_lambda.o' libtool=no \
depfile='.deps/test_lambda.Po' tmpdepfile='.deps/test_lambda.TPo' \
depmode=none /bin/bash ../depcomp \
CC -I. -I. -I.. -I.. -I.. -DG_HAVE_ISO_VARARGS - DG_IMPLEMENT_INLINES
-I/opt/gnome-2.7/include  -g -c -o test_lambda.o test_lambda.cc
"../sigc++/adaptors/lambda/group.h", line 462: Warning (Anachronism):
Type names qualified by template parameters require "typename".
"../sigc++/adaptors/lambda/group.h", line 690:     Where: While
specializing "sigc::lambda_group3<sigc::T_functor, sigc::T_type1,
sigc::T_type2, sigc::T_type3>".
"../sigc++/adaptors/lambda/group.h", line 690:     Where: Specialized
in non-template code.
"test_lambda.cc", line 60: Error: Overloading ambiguity between
"sigc::operator+<sigc::internal::lambda_select1,
sigc::internal::lambda_select2>(const
sigc::lambda<sigc::internal::lambda_select1>&, const
sigc::lambda<sigc::internal::lambda_select2>&)" and
"sigc::operator+<sigc::internal::lambda_select1,
sigc::lambda<sigc::internal::lambda_select2>>(const
sigc::lambda<sigc::internal::lambda_select1>&,
sigc::lambda<sigc::internal::lambda_select2>)".
"test_lambda.cc", line 67: Error: Overloading ambiguity between
"sigc::operator*<sigc::internal::lambda_select2,
sigc::internal::lambda_select3>(const
sigc::lambda<sigc::internal::lambda_select2>&, const
sigc::lambda<sigc::internal::lambda_select3>&)" and
"sigc::operator*<sigc::internal::lambda_select2,
sigc::lambda<sigc::internal::lambda_select3>>(const
sigc::lambda<sigc::internal::lambda_select2>&,
sigc::lambda<sigc::internal::lambda_select3>)".
"test_lambda.cc", line 67: Error: Overloading ambiguity between
"sigc::operator+<sigc::internal::lambda_select1,
sigc::lambda_operator<sigc::arithmetic<sigc::multiplies>,
sigc::internal::lambda_select2, sigc::internal::lambda_select3>> (const
sigc::lambda<sigc::internal::lambda_select1>&, const
sigc::lambda<sigc::lambda_operator<sigc::arithmetic<sigc:: multiplies>,
sigc::internal::lambda_select2, sigc::internal::lambda_select3>>&)"
and "sigc::operator+<sigc::internal::lambda_select1,
sigc::lambda<sigc::lambda_operator<sigc::arithmetic<sigc:: multiplies>, sigc::internal::lambda_select2, sigc::internal::lambda_select3>>> (const
sigc::lambda<sigc::internal::lambda_select1>&,
sigc::lambda<sigc::lambda_operator<sigc::arithmetic<sigc:: multiplies>,
sigc::internal::lambda_select2, sigc::internal::lambda_select3>>)".
"test_lambda.cc", line 94: Error: Overloading ambiguity between
"sigc::operator<<<std::ostream &, sigc::internal::lambda_select1> (const
sigc::lambda<std::ostream &>&, const
sigc::lambda<sigc::internal::lambda_select1>&)" and
"sigc::operator<<<std::ostream &, sigc::lambda<sigc::internal:: lambda_select1>>(const sigc::lambda<std::ostream &>&, sigc::lambda<sigc::internal:: lambda_select1>)".
4 Error(s) and 1 Warning(s) detected.
make[2]: *** [test_lambda.o] Error 4
make[2]: Leaving directory `/gnome/2.4/libsig++/libsigc++-2.0.3-test- forte/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/gnome/2.4/libsig++/libsigc++-2.0.3-test- forte'
make: *** [all] Error 2

#include <iostream>

  struct Thing
  {};

  template<class T>
  struct OtherThing
  {};

  template <class T1, class T2>
  Thing operator+ (const OtherThing<T1>& a1, const T2& a2) { return Thing(); }

  template <class T1, class T2>
  Thing operator+ (const T1& a1, const OtherThing<T2>& a2) { return Thing(); }

  template <class T1, class T2>
  Thing operator+ (const OtherThing<T1>& a1, const OtherThing<T2>& a2) { return Thing(); }


int main() {
  Thing thing;
  OtherThing<int> other_thing;

  Thing thing1 = thing + other_thing;
  Thing thing2 = other_thing + thing;
  Thing thing3 = other_thing + other_thing;
}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]