This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57335] internal compiler error: in cxx_eval_bit_field_ref, at cp/semantics.c:6977
- From: "ktietz at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Nov 2014 10:03:21 +0000
- Subject: [Bug c++/57335] internal compiler error: in cxx_eval_bit_field_ref, at cp/semantics.c:6977
- Auto-submitted: auto-generated
- References: <bug-57335-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57335
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ktietz at gcc dot gnu.org
--- Comment #6 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Yes, delayed folding fixes wrong-code/valid-code samples.
For invalid-code I see with delayed folding the following error-messages:
t_pr57335.C: In function 'int main()':
t_pr57335.C:29:5: error: non-constant condition for static assertion
static_assert(BitsOrderCheck().IsLsbBottom(), "blah");
^
t_pr57335.C:29:47: in constexpr expansion of
'BitsOrderCheck().BitsOrderCheck::IsLsbBottom()'
t_pr57335.C:29:5: error: accessing 'BitsOrderCheck::Data::bits' member instead
of initialized 'BitsOrderCheck::Data::byte' member in constant expression
Not sure if this is desired.