https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109899

            Bug ID: 109899
           Summary: ICE in check_noexcept_r, at cp/except.cc:1065
           Product: gcc
           Version: 13.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jeanmichael.celerier at gmail dot com
  Target Milestone: ---

Created attachment 55106
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55106&action=edit
Preprocessed source causing the bug

Repro: 

    #include <array>
    #include <string>
    #include <boost/pfr.hpp>
    struct T {
      struct {
        // Works fine for value == std::array<int, 5> or std::string directly
        std::array<std::string, 5> value;
      } X;
    };

    int main() {
      boost::pfr::detail::fields_count<T>();
    }

On godbolt: https://gcc.godbolt.org/z/xd48obMTv

Preprocessed source attached.

g++ 13.1.1 up-to-date in Arch Linux as of today, and it fails on any Boost
version that has <boost/pfr.hpp> (from 1.75 to 1.82+).

Reply via email to