Public Comment Number PC-UK0007 ISO/IEC CD 9899 (SC22N2620) Public Comment =========================================== Date: 1997-12-27 Author: Clive D.W. Feather Author Affiliation: Self Postal Address: Demon Internet Limited 322 Regents Park Road London N3 2QQ United Kingdom E-mail Address: Telephone Number: +44 181 371 1138 Fax Number: +44 181 371 1037 Number of individual comments: 1 Comment 1. Category: Other: outstanding problem Committee Draft subsection: 6.5.3.1 Title: Problem with restrict and string literals Detailed description: Consider the function call: fopen ("bar", "r"); Because both parameters of fopen() have restrict-qualified type, it is not permitted for the two strings to share storage. However, an implementation which shares string literals might do so, possibly without the programmer realizing that the situation happened (for example, the first parameter might be a macro defined in a makefile). The correct solution is to exempt string literals from the rules concerning restrict, but I am not familiar enough with the wording to try.