[Bug c/68193] _Generic -Woverflow false alarm

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 2 12:04:00 GMT 2015


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.


More information about the Gcc-bugs mailing list