Mysterious hangup.
Zbigniew Zagórski
longmanz@polbox.com
Sat Dec 4 05:49:00 GMT 1999
Hi.
I don't know if it's a bug but my gcc hangs up when compiling
this code:
class ab {
public:
int something;
ab(ab* param1 = 0,ab param2 = 0);
/* ^-- here */
};
main()
{
ab* ptr = new ab();
}
-- end code
I know because code is invalid( i forgot '*' in
constructor declaration ) but i think that compiler should
stop with error. Instead of it it runs and eats memory
up to hang system.
Distribution: RedHat 6.0
My gcc version:
(gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release))
Kernel: 2.2.5-15 on Pentium
Zbigniew Zagórski
longman@lo12.szczecin.pl
------------------ [POLBOX - INFORMACJA] --------------------
Zagraj w Internecie - w Brydza, Scrabble, Szachy lub Warcaby!
Nowy serwer gier online zaprasza - http://games.polbox.pl/
------------------------------------------------------------
More information about the Gcc-bugs
mailing list