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/68193] _Generic -Woverflow false alarm


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The problem here is that after we've parsed the selector (with warnings
inhibited), we go over all the associations: process the type-name, then parse
assignment-expression of the association also using c_parser_expr_no_commas,
but this time without the warnings inhibited.  We should probably disable
warnings when processing the associations and only warn for matched_assoc.  But
I can't readily conceive how to do that.

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