From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26878 invoked by alias); 27 Feb 2009 20:32:55 -0000 Received: (qmail 26842 invoked by uid 48); 27 Feb 2009 20:32:45 -0000 Date: Fri, 27 Feb 2009 20:32:00 -0000 Message-ID: <20090227203245.26841.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/36839] struct with only anonymous unions plus flexible array member In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "vegard dot nossum at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-02/txt/msg02350.txt.bz2 ------- Comment #4 from vegard dot nossum at gmail dot com 2009-02-27 20:32 ------- Workaround: Install an empty dummy member between the union and the array, like this: struct x { union { int x; }; int _dummy[0]; // workaround int array[]; }; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36839