This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/526
- To: nobody at gcc dot gnu dot org
- Subject: Re: c/526
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: 24 Dec 2000 14:26:00 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
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