#378 Compilation error in c99's math functions

v1.0 (example)
closed-fixed
nobody
None
5
2014-08-17
2014-01-27
maki
No

I have confirmed that the following error occurs in the latest trunk version. (using r6467.)
This error is caused by the changes of r6463.


[test code - test.c]

#include <math.h>
float foo(float f, float g) { return isnan(f); }
int main(void){ return 0; }

[command line]
gcc -std=c99 test.c

[error log]
test.c:2:1: error: unknown type name 'typeof'

[note]
'typeof' is gcc extension.
It cannot be used under c99 mode.


Thank you.

Discussion

  • Jonathan Yong

    Jonathan Yong - 2014-01-27

    Thanks, fixed in r6470.

     
  • Jonathan Yong

    Jonathan Yong - 2014-01-27
    • status: open --> closed-fixed
     

Log in to post a comment.