This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81607] Conditional operator: "type mismatch in shift expression" error
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 31 Jul 2017 09:41:47 +0000
- Subject: [Bug c++/81607] Conditional operator: "type mismatch in shift expression" error
- Auto-submitted: auto-generated
- References: <bug-81607-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81607
--- Comment #7 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 31 Jul 2017, mpolacek at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81607
>
> --- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
> Actually I think richi's fix is the right one. Let me test.
Note for aggregate types fold_const might just ICE so I'm not 100% sure
we don't need some more guards on it. Like if type != expected-type or
so?