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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |msebor at gcc dot gnu.org

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
The column number problem aside, the diagnostic itself could stand to be 
improved as well and made more informative (it may not be obvious why the use
of the flexible array member is invalid).  Below are a few ideas taken from
other implementations:

Clang:
error: arithmetic on a pointer to an incomplete type 'int []'
Oracle c99:
cannot do pointer arithmetic on operand of unknown size
XLC:
(S) Operation between types "int(*)[]" and "int" is not allowed.

Reply via email to