[Bug c++/79681] [6/7 Regression] ICE with constexpr and bitfield
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 1 09:02:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
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_inner is COMPONENT_REF,
attempt to use its first operand as BIT_FIELD_REF base.
* g++.dg/cpp1y/constexpr-79681-1.C: New test.
* g++.dg/cpp1y/constexpr-79681-2.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-79681-1.C
trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-79681-2.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list