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

            Bug ID: 113564
           Summary: ICE internal compiler error when calling a concept as
                    a function in a template
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: janschultke at googlemail dot com
  Target Milestone: ---

https://godbolt.org/z/nG9GGzj44

------------------------------------------

template <typename T>
concept tru = true;

template <typename T>
void awoo(T x) {
    tru<T>(x);
}

template void awoo(unsigned);

------------------------------------------

<source>: In instantiation of 'void awoo(T) [with T = unsigned int]':
<source>:9:28:   required from here
    9 | template void awoo(unsigned);
      |                            ^
<source>:6:11: internal compiler error: in tsubst_expr, at cp/pt.cc:20985
    6 |     tru<T>(x);
      |     ~~~~~~^~~
0x264416c internal_error(char const*, ...)
        ???:0
0xa5086d fancy_abort(char const*, int, char const*)
        ???:0
0xc89903 instantiate_decl(tree_node*, bool, bool)
        ???:0
0xcb398b instantiate_pending_templates(int)
        ???:0
0xb53299 c_parse_final_cleanups()
        ???:0
0xda6478 c_common_parse_file()
        ???:0
  • [Bug c++/113564] New: ICE i... janschultke at googlemail dot com via Gcc-bugs

Reply via email to