public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110555] New: internal compiler error: Segmentation fault when using std::ranges::range auto as a template parameter
@ 2023-07-05  5:22 hewillk at gmail dot com
  2023-07-06 15:49 ` [Bug c++/110555] " mpolacek at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: hewillk at gmail dot com @ 2023-07-05  5:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110555
           Summary: internal compiler error: Segmentation fault when using
                    std::ranges::range auto as a template parameter
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

Original from
https://stackoverflow.com/questions/76617167/check-if-a-type-is-convertible-to-a-range-in-c20

#include <ranges>

template<class R>
void print(R&& range) {
  if (std::is_same_v<R, std::ranges::range auto>) {
    // ...
  }
}

int main() {
  int arr[] = {0, 1, 2};
  print(arr);
}

https://godbolt.org/z/4Wq5d6z3c

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/110555] internal compiler error: Segmentation fault when using std::ranges::range auto as a template parameter
  2023-07-05  5:22 [Bug c++/110555] New: internal compiler error: Segmentation fault when using std::ranges::range auto as a template parameter hewillk at gmail dot com
@ 2023-07-06 15:49 ` mpolacek at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-07-06 15:49 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-07-06
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed, even 11 ICEs.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-06 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-05  5:22 [Bug c++/110555] New: internal compiler error: Segmentation fault when using std::ranges::range auto as a template parameter hewillk at gmail dot com
2023-07-06 15:49 ` [Bug c++/110555] " mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).