[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    gcc 3.0
From:       Michael Ritzert <kde () ritzert ! de>
Date:       2001-03-25 20:26:14
[Download RAW message or body]

Hello everybody,

I just tried to compile kdelibs (CVS HEAD) with gcc 3.0 prerelease. The
compilation ended with the following error:

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libltdl -I../../dcop -I../../libltdl \
-I../../kdecore -I../../kdeui -I../../kssl -I/opt/qt2/include -I/usr/X11R6/include \
-I/opt/kde2/include -D_REENTRANT -DEXTENSION_DIR=\"/opt/kde2/lib\" \
-DTRADER_DIR=\"/opt/kde2/lib/mcop\" -O2 -DNDEBUG -fno-exceptions -fno-check-new -Wall \
-pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long \
-Wnon-virtual-dtor -fno-builtin -frtti -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT \
-DQT_NO_ASCII_CAST -Wp,-MD,.deps/object.pp -c object.cc  -fPIC -DPIC -o \
                .libs/object.o
object.cc: In constructor `Arts::Object_skel::Object_skel()':
object.cc:572: warning: void format, Object_skel arg (arg 3)
object.cc: In constructor `Arts::Object_stub::Object_stub(Arts::Connection*,
   long int)':
object.cc:1106: warning: void format, Connection arg (arg 4)
object.cc: In member function `Arts::ObjectInternalData::MethodTableEntry&
   Arts::ObjectInternalData::MethodTableEntry::operator=(const
   Arts::ObjectInternalData::MethodTableEntry&)':
/opt/gcc-3.0/include/g++-v3/bits/stl_vector.h:645:   instantiated from `void \
std::vector<_Tp, _Alloc>::_M_insert_aux(std::__normal_iterator<_Tp*, std::vector<_Tp, \
_Alloc> >, const _Tp&) [with _Tp = Arts::ObjectInternalData::MethodTableEntry, _Alloc \
                = std::allocator<Arts::ObjectInternalData::MethodTableEntry>]'
/opt/gcc-3.0/include/g++-v3/bits/stl_vector.h:348:   instantiated from `void \
std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = \
Arts::ObjectInternalData::MethodTableEntry, _Alloc = \
std::allocator<Arts::ObjectInternalData::MethodTableEntry>]' object.cc:782:   \
instantiated from here object.cc:43: \
`Arts::ObjectInternalData::MethodTableEntry::<anonymous union>&  \
Arts::ObjectInternalData::MethodTableEntry::<anonymous  union>::operator=(const
   Arts::ObjectInternalData::MethodTableEntry::<anonymous union>&)' is
   inaccessible
/opt/gcc-3.0/include/g++-v3/bits/stl_vector.h:645: within this context
make[3]: *** [object.lo] Error 1
make[3]: Leaving directory `/home/ritzert/compile/kdelibs/arts/mcop'


I really don't know how to fix this - how do you declare an operator= for a union?
It's even possible that this is an error in gcc.

Regards,
Michael

 
> > Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic