public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* egcs C++ compatibility problem
@ 1998-02-08 17:05 Bernhard Rosenkraenzer
  1998-02-09 11:31 ` Kurt Garloff
  0 siblings, 1 reply; 2+ messages in thread
From: Bernhard Rosenkraenzer @ 1998-02-08 17:05 UTC (permalink / raw)
  To: egcs, beastium-list; +Cc: kde-bugs

Hello,
there's a C++ compatibility problem with egcs.
While trying to compile the QwSpriteField from the KDE support libraries:

/bin/sh ../libtool --mode=compile 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 QwSpriteField.cpp
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.

LLaP
bero

-- bero@bero-online.ml.org - ICQ/UIN 6545964 - http://www.star-trek.ml.org/ --

ATTENTION: People sending unwanted advertising e-mail to this address
will be charged $25 for network traffic and computing time. By extracting
my address from this message or its header, you agree to these terms.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: egcs C++ compatibility problem
  1998-02-08 17:05 egcs C++ compatibility problem Bernhard Rosenkraenzer
@ 1998-02-09 11:31 ` Kurt Garloff
  0 siblings, 0 replies; 2+ messages in thread
From: Kurt Garloff @ 1998-02-09 11:31 UTC (permalink / raw)
  To: Bernhard Rosenkraenzer; +Cc: egcs, beastium-list, kde-bugs

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 !                   | 
+--------------------------------------------------------------+


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-02-09 11:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-08 17:05 egcs C++ compatibility problem Bernhard Rosenkraenzer
1998-02-09 11:31 ` Kurt Garloff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).