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

            Bug ID: 122396
           Summary: Hard error with optional<void(&)(void)> iterator
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

#include <optional>

int main() {
  std::optional<void(&)(void)> o;
  o.begin();
}

https://godbolt.org/z/nG5zooq7T

https://cplusplus.github.io/LWG/issue4308 is related, but there are should not
be a hard error? no?

Reply via email to