https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77941

--- Comment #9 from Janne Blomqvist <jb at gcc dot gnu.org> ---
(In reply to Steve Kargl from comment #7)
> I suppose one could always check that a length type parameter
> less than some max integer based on 32-bit vs 64-bit system, 
> but that would pessimize all uses of strings as this would 
> need to be a runtime check.

IMHO we shouldn't do runtime checks for this. Particularly now that we support
64-bit string lengths on 64-bit targets (which is what more or less everybody
doing real work will be using), outside of artificial examples we're never
going to hit the limit.

Reply via email to