On Wed, Mar 16, 2016 at 2:45 AM, Bernhard Reutner-Fischer wrote: > On March 16, 2016 3:17:20 AM GMT+01:00, "H.J. Lu" wrote: > >>> Where is the current definition of empty types you're proposing for >>use in >>> GCC? Is the behavior of this case clear from that definition? >> >>https://gcc.gnu.org/ml/gcc/2016-03/msg00071.html >> >>Jason's patch follows it. Here is a test for struct with zero-size >>array of empty type, which is treated as empty type. > > index 0000000..489eb3a > --- /dev/null > +++ b/gcc/testsuite/g++.dg/abi/empty19.C > @@ -0,0 +1,17 @@ > +// PR c++/60336 > +// { dg-do run } > +// { dg-options "-Wabi=9 -x c" } > +// { dg-additional-sources "empty14a.c" } > > 14a ? Not 19a ? > Thanks > > Here is the updated patch. -- H.J.