This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20295] zero length array accepted
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2005 00:27:02 -0000
- Subject: [Bug c++/20295] zero length array accepted
- References: <20050302234401.20295.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-03 00:26 -------
Yes this is invalid code. Reduced testcase:
int a0[] = {};
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2005-03-03 00:26:59
date| |
Summary|template fails to match |zero length array accepted
|empty array |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20295