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]
Other format: [Raw text]

Re: c/5127: Should Get a Compile Error


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


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