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

            Bug ID: 100436
           Summary: std::views::iota(0, true) is well-formed
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

Hi, The following is accepted since gcc-11:

https://godbolt.org/z/P8v383Wr3

#include <ranges>
auto r = std::views::iota(0, true);

Shouldn't this be ill-formed? Isn’t this kind of initialization explicitly
prohibited in the deduction guides? Correct me if i am wrong, thanks.

Reply via email to