This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/68193] _Generic -Woverflow false alarm
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 Dec 2015 12:04:30 +0000
- Subject: [Bug c/68193] _Generic -Woverflow false alarm
- Auto-submitted: auto-generated
- References: <bug-68193-4 at http dot gcc dot gnu dot org/bugzilla/>
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.