[Bug libstdc++/106589] New: visit<void> rejects lambdas that do not return void

hewillk at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Aug 12 03:27:42 GMT 2022


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

            Bug ID: 106589
           Summary: visit<void> rejects lambdas that do not return void
           Product: gcc
           Version: 13.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 <variant>

int main() {
  std::visit<void>([]{ return 0; });
}

https://godbolt.org/z/G3Penchbx


More information about the Gcc-bugs mailing list