egcs C++ compatibility problem

Kurt Garloff garloff@hft.e-technik.uni-dortmund.de
Mon Feb 9 11:31:00 GMT 1998


On Mon, 9 Feb 1998, Bernhard Rosenkraenzer wrote:

> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/qt-1.32/include -g0 -O2
> -fomit-frame-pointer -Vegcs-2.91.06 -pipe -s -c -fPIC -DPIC
> QwSpriteField.cpp
> QwSpriteField.cpp:26: `remove<>' does not match any template declaration
> QwSpriteField.cpp:26: no matching template for
> `remove(QwSpriteFieldGraphic *, QwPublicList<QwSpriteFieldGraphic *> *&)'
> found
> make: *** [QwSpriteField.lo] Error 1
> 
> gcc 2.8.0 works fine.

egcs is correct in finding the bug. Late egcs snapshots check the type of
the return value better than gcc280 or older egcs versions.
Add the * which was forgotten in the declaration of remove <> to make it
work. (I don't have the KDE source on my computer right now, that's just
what I remeber. I can look for it, if you're not able to fix it with this
description.)

+--------------------------------------------------------------+
|  cand.phys. Kurt Garloff        C1-O4-101 (Chemiegeb"aude)   |
|Lehrstuhl Hochfrequenztechnik  (Fakult"at f"ur Elektrotechnik)|
|   Universit"at Dortmund             D - 44221 Dortmund       |
|   Tel.: (0231) 755-3947            Fax: (0231) 755-4631      |
|            garloff@hft.e-technik.uni-dortmund.de             |
|                 Public PGP key available !                   | 
+--------------------------------------------------------------+




More information about the Gcc mailing list