#17 Compile error with gcc-3.4.1 & gcc-3.4.2

reproducible
closed
compiling (22)
5
2012-09-30
2004-09-20
No

Distribution: Fedora Core 2
KDE: 3.3.0
QT: qt-x11-free-3.3.3
Kwave: kwave-0.7.1-2

Using either gcc-3.4.1 or gcc-3.4.2, I get the
following compile error:


make
make all-recursive
make[1]: Entering directory /usr/local/src/kwave-0.7.1' Making all in mt make[2]: Entering directory/usr/local/src/kwave-0.7.1/mt'
make[2]: Nothing to be done for all'. make[2]: Leaving directory/usr/local/src/kwave-0.7.1/mt'
Making all in libgui
make[2]: Entering directory
/usr/local/src/kwave-0.7.1/libgui' if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/src/kwave-0.7.1 -I/usr/local/kde-3.3/include -I/usr/local/qt/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute-fno-exceptions -fno-check-new -fno-common -I/usr/local/kde-3.3/include -I/usr/local/kde-3.3/include -I/usr/local/kde-3.3/include -MT CurveWidget.moc.lo -MD -MP -MF ".deps/CurveWidget.moc.Tpo" -c -o CurveWidget.moc.lo CurveWidget.moc.cpp; \ then mv -f ".deps/CurveWidget.moc.Tpo" ".deps/CurveWidget.moc.Plo"; else rm -f ".deps/CurveWidget.moc.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/src/kwave-0.7.1 -I/usr/local/kde-3.3/include -I/usr/local/qt/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -I/usr/local/kde-3.3/include -I/usr/local/kde-3.3/include -I/usr/local/kde-3.3/include -MT CurveWidget.moc.lo -MD -MP -MF .deps/CurveWidget.moc.Tpo -c CurveWidget.moc.cpp -fPIC -DPIC -o .libs/CurveWidget.moc.o ../libkwave/Triple.h: In copy constructorTriple<T1, T2,="" T3="">::Triple(const Triple<T1, T2,="" T3="">&) [with T1 =
int, T2 = QString, T3 = QString]
':
/usr/local/qt/include/qmap.h:803: instantiated from
T& QMap<Key, T>::operator[](const Key&) [with Key = interpolation_t, T = Triple<int, QString, QString>]' ../libkwave/TypesMap.h:98: instantiated fromIDX
TypesMap<IDX, DATA="">::findFromName(const QString&) [with
IDX = interpolation_t, DATA = int]
'
../libkwave/Interpolation.h:63: instantiated from here
../libkwave/Triple.h:45: error: passing const Triple<int, QString, QString>' asthis' argument of
T1& Triple<T1, T2, T3>::first() [with T1= int, T2 = QString, T3 = QString]' discards qualifiers ../libkwave/Triple.h:45: error: passingconst
Triple<int, QString,="" QString="">' as this' argument ofT2& Triple<T1, T2,="" T3="">::second() [with T1 = int, T2 =
QString, T3 = QString]
' discards qualifiers
../libkwave/Triple.h:45: error: passing const Triple<int, QString, QString>' asthis' argument of
T3& Triple<T1, T2, T3>::third() [with T1= int, T2 = QString, T3 = QString]' discards qualifiers make[2]: *** [CurveWidget.moc.lo] Error 1 make[2]: Leaving directory/usr/local/src/kwave-0.7.1/libgui'
make[1]: [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/kwave-0.7.1'
make:
[all] Error 2


Note that this does not occur with gcc-3.3.3.

Discussion

  • Thomas Eschenbacher

    Logged In: YES
    user_id=37622

    I will take a look on this as soon as I have a system with this new
    compiler running...

     
  • Thomas Eschenbacher

    Logged In: YES
    user_id=37622

    now I can reproduce it on Gentoo (x86/unstable) with gcc-3.4.1. I'm
    working on it...

     
  • Thomas Eschenbacher

    Logged In: YES
    user_id=37622

    fixed it in CVS, will be in the next release...

     
  • Thomas Eschenbacher

    Logged In: YES
    user_id=37622

    fixed in Release v0.7.3

     

Log in to post a comment.