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]

serious: GCC 2.95.3 accepts illegal function call


Check this:

--- begin code ---

typedef long long uint64;

uint64 calculate_cpu_timing_factors (unsigned int instr)
{
	// ...
}

uint64 calculate_cpu_timing()
{
	return calculate_cpu_timing(calculate_cpu_timing(10000)/1024);
}

--- end code ---

This piece of code is happily accepted by the compiler! Check it 'til
you find the error, it took me the whole day :-(((

Michael Noisternig.


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