[Bug c++/79681] [6 Regression] ICE with constexpr and bitfield

2018-02-11 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681

Volker Reichelt  changed:

   What|Removed |Added

 CC||chet.simpson at gmail dot com

--- Comment #11 from Volker Reichelt  ---
*** Bug 57335 has been marked as a duplicate of this bug. ***

[Bug c++/79681] [6 Regression] ICE with constexpr and bitfield

2017-05-07 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681

Volker Reichelt  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
  Known to work||6.3.1
 Resolution|--- |FIXED
  Known to fail||5.1.0, 6.1.0, 6.3.0

--- Comment #10 from Volker Reichelt  ---
Fixed by Jakub's patch.

[Bug c++/79681] [6 Regression] ICE with constexpr and bitfield

2017-05-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681

--- Comment #9 from Jakub Jelinek  ---
Author: jakub
Date: Fri May  5 21:34:36 2017
New Revision: 247678

URL: https://gcc.gnu.org/viewcvs?rev=247678=gcc=rev
Log:
Backported from mainline
2017-03-01  Jakub Jelinek  

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:
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-79681-1.C
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-79681-2.C
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/fold-const.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug c++/79681] [6 Regression] ICE with constexpr and bitfield

2017-03-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[6/7 Regression] ICE with   |[6 Regression] ICE with
   |constexpr and bitfield  |constexpr and bitfield

--- Comment #8 from Jakub Jelinek  ---
Fixed on the trunk so far.