This is the mail archive of the gcc-prs@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]

Re: c/526


The following reply was made to PR c/526; it has been noted by GNATS.

From: "Joseph S. Myers" <jsm28@cam.ac.uk>
To: <bje@gcc.gnu.org>
Cc: <gcc-gnats@gcc.gnu.org>,  <meixner@rbg.informatik.tu-darmstadt.de>
Subject: Re: c/526
Date: Sun, 24 Dec 2000 14:19:43 +0000 (GMT)

 On 24 Dec 2000 bje@gcc.gnu.org wrote:
 
 >      The semantics of this array initialisation are that the string
 >      must be NULL-terminated (as it is).  The ANSI standard says that
 >      any remaining characters beyond the NULL are left unmodified.
 
 This was fixed in TC2 to the old standard, and C99: the remaining
 characters must be zero.  See DRs #060, #092; PR c/128 (which is the same
 bug); and gcc.c-torture/execute/20000801-4.c.
 
 -- 
 Joseph S. Myers
 jsm28@cam.ac.uk
 

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