c/5127: Should Get a Compile Error

rodrigc@gcc.gnu.org rodrigc@gcc.gnu.org
Sat Dec 15 15:27:00 GMT 2001


Synopsis: Should Get a Compile Error

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Dec 15 13:15:02 2001
State-Changed-Why:
    The compiler's job is to check that the parameters you
    passed to freopen() satisfy the function prototype:
    
    FILE  *freopen  (const  char *path, const char *mode, FILE *stream);
    
    If you satisfy the function prototype, but the type
    of data you pass in is bad, then that is the job
    of the underlying C library implementation to report
    an error (or not).
    
    If VC++ and Borland also did not report this error, then
    that should give you a clue that this is not a compiler bug.
    
    Not a gcc bug.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5127



More information about the Gcc-bugs mailing list