Re: Possible GCC optimization bug

Arsen Arsenović via Gcc-help <[email protected]> Thu, 12 Feb 2026 19:04:35 +0100
Newsgroups gmane.comp.gcc.help
Message-ID <[email protected]>
Anubis 1101 via Gcc-help <[email protected]> writes:

> If you think it's walking past the end of the array, you definitely
> didn't read it.

length() most definitely is.  The array contents are:

  { 120, 99, 108, 97, 109, 97, 116, 105, 111, 110 }

... so, no zero terminator.

I imagine the same goes for size().
-- 
Arsen Arsenović
signature.asc (application/pgp-signature, 418 B)
-----BEGIN PGP SIGNATURE-----

iQECBAEWCgCqFiEE/uKz0RP8AKMWLWBhUsKUMB6ixJMFAmmOFjMbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGRUUyQjNEMTEzRkMwMEEzMTYyRDYw
NjE1MkMyOTQzMDFFQTJDNDkzEBxhcnNlbkBhYXJzZW4ubWUACgkQUsKUMB6ixJNT
FQEAtWFNRGcklS1S+5gwYYUeF9HLxBZcSjCxt6B7S71tMDUBAL+b4aOia+/gD6HU
jPm79aS67Uy9OnslfoFGK939ZCIB
=XGyq
-----END PGP SIGNATURE-----