[Bug c++/20295] zero length array accepted

2005-03-03 Thread bangerth at dealii dot org

--- Additional Comments From bangerth at dealii dot org  2005-03-03 14:39 
---
I think gcc is right, and icc rejects the code with an almost exact same 
error message. 
 
W. 

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20295


[Bug c++/20295] zero length array accepted

2005-03-03 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-03 
14:45 ---
(In reply to comment #3)
 I think gcc is right, and icc rejects the code with an almost exact same 
 error message. 

But we don't still don't reject the zero sized array which is a bug.

-- 
   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20295


[Bug c++/20295] zero length array accepted

2005-03-03 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
   Last reconfirmed|2005-03-03 00:26:59 |2005-03-03 14:45:48
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20295


[Bug c++/20295] zero length array accepted

2005-03-03 Thread bangerth at dealii dot org

--- Additional Comments From bangerth at dealii dot org  2005-03-03 17:00 
---
That's correct, but that's a dup of PR 16859. 
W. 

-- 
   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20295


[Bug c++/20295] zero length array accepted

2005-03-02 Thread pinskia 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|-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