This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19989] [4.0/4.1 regression] Inconsistency with zero-sized arrays
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Oct 2005 16:31:47 -0000
- Subject: [Bug c++/19989] [4.0/4.1 regression] Inconsistency with zero-sized arrays
- References: <bug-19989-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from reichelt at gcc dot gnu dot org 2005-10-10 16:31 -------
On the 3.4 branch the situation changed with Giovanni's patch for PR19208:
http://gcc.gnu.org/ml/gcc-cvs/2005-07/msg00902.html
We now diagnose none of the arrays without "-pedantic", and all three
arrays with "-pedantic". This matches the behavior for arrays in
non-template structs and outside any struct. So I'd call this fixed on
the 3.4 branch.
The 4.0 branch and mainline still have the problem, though.
Technically these are regressions now.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Inconsistency with zero- |[4.0/4.1 regression]
|sized arrays |Inconsistency with zero-
| |sized arrays
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19989