[Bug c++/94955] [10 Regression] ICE in to_wide
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94955 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #11 from Marek Polacek --- Fixed.
[Bug c++/94955] [10 Regression] ICE in to_wide
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94955 --- Comment #10 from CVS Commits --- The releases/gcc-10 branch has been updated by Marek Polacek : https://gcc.gnu.org/g:18436d87ff85282b200579cb8da496659632ad6b commit r10-8277-g18436d87ff85282b200579cb8da496659632ad6b Author: Marek Polacek Date: Thu Jun 11 16:26:41 2020 -0400 c++: ICE when shortening right shift [PR94955] Since r10-6527 fold_for_warn calls maybe_constant_value, which means it can fold more than it previously could. In this testcase it means that cp_build_binary_op/RSHIFT_EXPR set short_shift because now we were able to fold op1 to an INTEGER_CST. But then when actually performing the shortening we crashed because cp_fold_rvalue wasn't able to fold as much as f_f_w and so tree_int_cst_sgn crashed on a NOP_EXPR. Therefore the calls should probably match. PR c++/94955 * typeck.c (cp_build_binary_op): Use fold_for_warn instead of cp_fold_rvalue. * g++.dg/cpp0x/constexpr-shift2.C: New test.
[Bug c++/94955] [10 Regression] ICE in to_wide
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94955 Jakub Jelinek changed: What|Removed |Added CC||nmmm at nmmm dot nu --- Comment #9 from Jakub Jelinek --- *** Bug 95579 has been marked as a duplicate of this bug. ***
[Bug c++/94955] [10 Regression] ICE in to_wide
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94955 Marek Polacek changed: What|Removed |Added CC||danny.schneider at posteo dot de --- Comment #8 from Marek Polacek --- *** Bug 95206 has been marked as a duplicate of this bug. ***
[Bug c++/94955] [10 Regression] ICE in to_wide
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94955 Marek Polacek changed: What|Removed |Added Summary|[10/11 Regression] ICE in |[10 Regression] ICE in |to_wide |to_wide --- Comment #7 from Marek Polacek --- Fixed on trunk so far.
[Bug c++/94955] [10 regression] ICE in to_wide
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94955 Jan Hubicka changed: What|Removed |Added Status|WAITING |NEW
[Bug c++/94955] [10 regression] ICE in to_wide
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94955 --- Comment #2 from Jan Hubicka --- Created attachment 48455 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48455=edit testcase
[Bug c++/94955] [10 regression] ICE in to_wide
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94955 Marek Polacek changed: What|Removed |Added Last reconfirmed||2020-05-05 Status|UNCONFIRMED |WAITING Ever confirmed|0 |1
[Bug c++/94955] [10 regression] ICE in to_wide
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94955 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- Can you provide the .ii file too?