g++-3.0 bug in cout

Juha Mäkinen juham@koti.tpo.fi
Fri Jun 1 01:07:00 GMT 2001


I sent a report on the weird behavior of a perfectly simple
hello-world type program. Now I must confess, I did do 
something silly after all. My PATH usually contains among
others the directory . (that is, my user-id PATH, my root-user
PATH certainly does NOT ) and for some reason it had gone missing
in a recent upgrade. So the # test did not find the right program.

Should have done # ./test -- I blush. 

Sorry to have bothered you in vain.

	Juha Mäkinen
	<juha.makinen@koti.tpo.fi>

#include <stdio.h>
#include <stdlib.h>
#include <iostream>

int Terve( char * Para = "Jaahah" )
{
std::cout << Para << "| ";
};

namespace Koe{
	int Terve()
	{
	std::cout << "Hei hei |";
	}
}

main()
{
	Terve();
	Koe::Terve();
	std::cout << "TERVE\n";
	fflush( NULL );
	exit(0);
};



More information about the Gcc-bugs mailing list