C++ PATCH to improve VLA/EH diagnostics

Jason Merrill jason@redhat.com
Wed May 8 21:22:00 GMT 2013


VLA types in diagnostics have tended to look like

int[(((sizetype)(((ssizetype)i) + -1)) + 1)]

...which is horrible.  This patch fixes that to

int[i]

and also specifically diagnoses trying to use a variably modified type 
in throw or catch.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vla-throw.patch
Type: text/x-patch
Size: 3288 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130508/de396647/attachment.bin>


More information about the Gcc-patches mailing list