On Wed, Dec 14, 2016 at 8:16 AM, Marek Polacek <pola...@redhat.com> wrote: > + if (TREE_CODE (type) == ARRAY_TYPE > + && TYPE_DOMAIN (type) == NULL_TREE > + && init != NULL_TREE) > + error_at (DECL_SOURCE_LOCATION (member), > + "initialization of a flexible array member in a > constructor");
On flexary12.C this doesn't indicate the line where the actual problem occurs, in the definition of the constructor; see other diagnostics in perform_member_init for the pattern to follow. Also, let's say "member initializer for flexible array member", since it's fine to set up the flexible array in the body of the constructor. Jason