This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/69262] New: Request for better array bounds warning
- From: "nightstrike at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 13 Jan 2016 16:29:40 +0000
- Subject: [Bug c/69262] New: Request for better array bounds warning
- Auto-submitted: auto-generated
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++?