[cfe-dev] Crash when function defined twice

Robert Staudinger robert.staudinger at gmail.com
Tue Jan 15 05:33:19 PST 2008


Hello,

a bug found by incident:
`clang -fsyntax-only' crashes on the following (obviously illegal) code:

int foo(int a)
{
	return 0;
}

int foo(int a)
{
	return 0;
}

When the parameter list of one of the functions is changed clang
points out the error.

Regards,
Rob



More information about the cfe-dev mailing list