[Bug c++/42121] g++ should warn or error on internal 0 size array in struct

2015-12-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42121 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/42121] g++ should warn or error on internal 0 size array in struct

2015-12-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42121 --- Comment #11 from Martin Sebor --- Author: msebor Date: Thu Dec 17 01:38:35 2015 New Revision: 231734 URL: https://gcc.gnu.org/viewcvs?rev=231734&root=gcc&view=rev Log: Correct ChangeLogs for PR c++/42121 and related. Modified: trunk/gcc

[Bug c++/42121] g++ should warn or error on internal 0 size array in struct

2015-11-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42121 --- Comment #10 from Martin Sebor --- Patch posted for review: https://gcc.gnu.org/ml/gcc-patches/2015-11/msg02595.html

[Bug c++/42121] g++ should warn or error on internal 0 size array in struct

2015-11-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42121 Martin Sebor changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug c++/42121] g++ should warn or error on internal 0 size array in struct

2010-10-27 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42121 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/42121] g++ should warn or error on internal 0 size array in struct

2009-11-23 Thread redi at gcc dot gnu dot org
--- Comment #7 from redi at gcc dot gnu dot org 2009-11-23 14:53 --- (In reply to comment #6) > > OK, can't argue with not breaking existing headers I suppose. But this is to > me clearly a bogus usage. What are the semantics of using internal zero sized > arrays in a struct? They ha

[Bug c++/42121] g++ should warn or error on internal 0 size array in struct

2009-11-23 Thread david dot resnick at comverse dot com
--- Comment #6 from david dot resnick at comverse dot com 2009-11-23 14:15 --- (In reply to comment #5) > Subject: Re: g++ should warn or error on internal 0 size > array in struct > On Fri, 20 Nov 2009, david dot resnick at comverse dot com wrote: > > (In reply to comment #3) > > > (

[Bug c++/42121] g++ should warn or error on internal 0 size array in struct

2009-11-20 Thread joseph at codesourcery dot com
--- Comment #5 from joseph at codesourcery dot com 2009-11-20 20:57 --- Subject: Re: g++ should warn or error on internal 0 size array in struct On Fri, 20 Nov 2009, david dot resnick at comverse dot com wrote: > (In reply to comment #3) > > (In reply to comment #2) > > > In standard

[Bug c++/42121] g++ should warn or error on internal 0 size array in struct

2009-11-20 Thread david dot resnick at comverse dot com
--- Comment #4 from david dot resnick at comverse dot com 2009-11-20 18:56 --- (In reply to comment #3) > (In reply to comment #2) > > In standard C, a size 0 array is forbidden, at least in C99 doc I have > > handy, > Yes, but it's a long-standing GNU extension: > http://gcc.gnu.org/o

[Bug c++/42121] g++ should warn or error on internal 0 size array in struct

2009-11-20 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2009-11-20 18:49 --- (In reply to comment #2) > In standard C, a size 0 array is forbidden, at least in C99 doc I have handy, Yes, but it's a long-standing GNU extension: http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Zero-Length.html#Zero-Le

[Bug c++/42121] g++ should warn or error on internal 0 size array in struct

2009-11-20 Thread david dot resnick at comverse dot com
--- Comment #2 from david dot resnick at comverse dot com 2009-11-20 18:38 --- (In reply to comment #1) > Looks like this is for compatibility with GNU C, which allows it, but only in > the form char b[0] not char b[] b[] seems simply broken unless last in an array for the C99 "flexibl

[Bug c++/42121] g++ should warn or error on internal 0 size array in struct

2009-11-20 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2009-11-20 18:09 --- Looks like this is for compatibility with GNU C, which allows it, but only in the form char b[0] not char b[] -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42121