c/526
Joseph S. Myers
jsm28@cam.ac.uk
Sun Dec 24 06:26:00 GMT 2000
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
More information about the Gcc-prs
mailing list