This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81234] [6 Regression] stray notes for a flexible array member not at end of struct


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81234

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #3)
> In C, mode GCC accepts the test case from comment #0 but with -Wpedantic
> issues a warning:
> 
> t.c:8:14: warning: invalid use of structure with flexible array member
> [-Wpedantic]

Ah, I missed that when checking with the C front end, thanks.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]