This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
serious: GCC 2.95.3 accepts illegal function call
- To: gcc-bugs at gcc dot gnu dot org
- Subject: serious: GCC 2.95.3 accepts illegal function call
- From: Michael Noisternig <michael dot noisternig at sbg dot ac dot at>
- Date: Fri, 07 Sep 2001 20:27:34 +0200
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.