🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: de.comp.lang.c++
2 messages
2 total messages Started by Frank Zetzsche Wed, 13 Dec 1995 20:39
g++ Bug
#989
Author: Frank Zetzsche
Date: Wed, 13 Dec 1995 20:39
44 lines
985 bytes
Hallo,

bei dem folgenden Programm klappt beim GNU g++ 2.5.8 das Überladen der Funktion
f nicht. Kann mir jemand sagen, ob dieser Fehler bekannt bzw. behoben ist ?

Vielen Dank,

Frank

//------------------------------------------------------------------------

#include <iostream.h>

class A {

};

void f(A& a, int)
{
   cout << "f(int)" << endl << flush;
}

void f(A& a, long)
{
   cout << "f(long)" << endl << flush;
}


void main()
{
   A a;
   f(a, 3);
   f(a, 3L);
}

// output:
// f(int)
// f(int)

//------------------------------------------------------------------------

-- 
Frank Zetzsche fz@zetzsche.rhein-main.de
Re: g++ Bug
#998
Author: Dietmar Kuehl
Date: Thu, 14 Dec 1995 10:21
10 lines
914 bytes
Hi,
Frank Zetzsche (fz@zetzsche.rhein-main.de) wrote:
: bei dem folgenden Programm klappt beim GNU g++ 2.5.8 das Überladen der Funktion
: f nicht. Kann mir jemand sagen, ob dieser Fehler bekannt bzw. behoben ist ?

Ja, der Fehler ist in gcc-2.6.3 und folgenden behoben.
--
dietmar.kuehl@uni-konstanz.de
http://www.informatik.uni-konstanz.de/~kuehl
I am a realistic optimist - that's why I appear to be slightly pessimistic
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads