This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/69262] New: Request for better array bounds warning


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

            Bug ID: 69262
           Summary: Request for better array bounds warning
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nightstrike at gmail dot com
  Target Milestone: ---

In g++, if you have a function like 'void f(int [][])', you get the helpful
error message:

"error: multidimensional array must have bounds for all dimensions except the
first"

If you do it in gcc, you get the less helpful message:

"error: array type has incomplete element type"

Any chance gcc could use the error message from g++?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]