https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115772
Bug ID: 115772 Summary: static_assert does not accept constexpr member function Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Shun.Yao at de dot bosch.com Target Milestone: --- Created attachment 58584 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58584&action=edit example to reproduce the error This behavior is observed for compiler from gccV10. static_assert does not accept a member function declared as constexpr in a template class. Compiler complains with the message error: non-constant condition for static assertion Example to reproduce the error is attached