https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681
--- Comment #7 from Jakub Jelinek ---
Author: jakub
Date: Wed Mar 1 09:02:12 2017
New Revision: 245804
URL: https://gcc.gnu.org/viewcvs?rev=245804&root=gcc&view=rev
Log:
PR c++/79681
* fold-const.c (make_bit_field_ref): If orig_
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681
--- Comment #6 from Jakub Jelinek ---
Created attachment 40837
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40837&action=edit
gcc7-pr79681.patch
This seems to work though.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681
--- Comment #5 from Jakub Jelinek ---
Of course !in_gimple_form.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681
--- Comment #4 from Jakub Jelinek ---
I was thinking about
--- fold-const.c.jj12017-02-17 18:29:24.0 +0100
+++ fold-const.c2017-02-27 14:49:13.816203253 +0100
@@ -3862,6 +3862,39 @@ make_bit_field_ref (location_t loc, tree
{
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681
--- Comment #3 from Jakub Jelinek ---
A problem with that information loss due to make_bit_field_ref and its callers
during folding is that there could e.g. be multiple fields that fall into the
range (e.g. inside of union) etc.
The IMHO best fi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681
Richard Biener changed:
What|Removed |Added
Priority|P3 |P2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681
Marek Polacek changed:
What|Removed |Added
Target Milestone|--- |6.4
Summary|ICE with constexp