public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/113564] New: ICE internal compiler error when calling a concept as a function in a template
@ 2024-01-23 18:26 janschultke at googlemail dot com
  2024-01-23 19:47 ` [Bug c++/113564] " mpolacek at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: janschultke at googlemail dot com @ 2024-01-23 18:26 UTC (permalink / raw)
  To: gcc-bugs

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

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

* [Bug c++/113564] ICE internal compiler error when calling a concept as a function in a template
  2024-01-23 18:26 [Bug c++/113564] New: ICE internal compiler error when calling a concept as a function in a template janschultke at googlemail dot com
@ 2024-01-23 19:47 ` mpolacek at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2024-01-23 19:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2024-01-23
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Seems to have started with r10-5014-g861d4af8d82819:

commit 861d4af8d82819a857e360949545651adf33a264
Author: Andrew Sutton <asutton@lock3software.com>
Date:   Wed Nov 27 15:23:02 2019 +0000

    re PR c++/92236 ([concepts] Explain non-satisfaction in static_assert)

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

end of thread, other threads:[~2024-01-23 19:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-23 18:26 [Bug c++/113564] New: ICE internal compiler error when calling a concept as a function in a template janschultke at googlemail dot com
2024-01-23 19:47 ` [Bug c++/113564] " 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).