PING^1: [PATCH] Add TYPE_EMPTY_RECORD for C++ empty class
diff mbox

Message ID CE42174E-B290-4DC5-93FD-375654C4223F@gmail.com
State New
Headers show

Commit Message

Bernhard Reutner-Fischer March 16, 2016, 9:45 a.m. UTC
On March 16, 2016 3:17:20 AM GMT+01:00, "H.J. Lu" <hjl.tools@gmail.com> 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

Patch
diff mbox

--- /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