This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/57335] internal compiler error: in cxx_eval_bit_field_ref, at cp/semantics.c:6977


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]