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

--- Comment #21 from Mark Harmstone <maharmstone at gcc dot gnu.org> ---
(In reply to Eric Botcazou from comment #20)
> > -fgnat-encodings=all removes the DW_AT_upper_bound from the
> > DW_TAG_subrange_type DIE in the array, so it's still not representable as a
> > CodeView LF_ARRAY, which needs this to be an integer constant.
> 
> So it cannot represent the VLAs of modern C?

That's right. Microsoft doesn't like VLAs, they're not supported in any version
of MSVC.

I've pushed commit 908dead911 which at least fixes the crash. I'll need to play
around with windbg to see what the best way to represent char[n] would be -
char*, char[0], char[1]...

Reply via email to