On Wed, Jan 25, 2017 at 10:02:23AM -0700, Martin Sebor wrote: > --- gcc/cp/decl.c (revision 244844) > +++ gcc/cp/decl.c (working copy) > @@ -11798,6 +11798,17 @@ grokdeclarator (const cp_declarator *declarator, > } > else > { > + /* Array is a flexible member. */ > + if (in_system_header_at (input_location)) > + /* Do not warn flexible them in system headers because glibc > + uses them. */;
The comment is weird. Did you mean warn about them, or warn about flexible array members or something similar? Jakub