This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Mysterious hangup.
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Mysterious hangup.
- From: "Zbigniew Zagórski" <longmanz at polbox dot com>
- Date: Fri, 03 Dec 1999 00:56:18 +0100
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/
------------------------------------------------------------