This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

g++-3.0 bug in cout


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);
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]