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]

Mysterious hangup.


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/
------------------------------------------------------------




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