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

--- Comment #21 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #20)
--- snip ---
> 
> so you can instead do
> 
> gfc_symbol_buffer the_buf;
> 
> and have it behave like a char the_buf[GFC_MAX_SYMBOL_LEN] declaration.
> 
> The auto_vec sequence above uses a stack allocation for up to 63 length
> and otherwise a heap allocation (and makes sure to free the allocation
> when the buffer goes out of scope).

Thanks for this idea Richard, it does allow more flexibility.

Reply via email to