public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108179] New: [11/12 regression] ICE related to template template parameters in tsubst, at cp/pt.cc:15782
@ 2022-12-19 16:11 s at stu dot scot
  2022-12-19 16:22 ` [Bug c++/108179] [11/12/13 " pinskia at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: s at stu dot scot @ 2022-12-19 16:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108179
           Summary: [11/12 regression] ICE related to template template
                    parameters in tsubst, at cp/pt.cc:15782
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: s at stu dot scot
  Target Milestone: ---

Created attachment 54126
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54126&action=edit
Bug report from -freport-bug

The following code produces an internal compiler error on all g++ 11 and 12
versions I tried. This is the most minimal example I could come up with. It
compiles fine under g++ 10 and clang.

```
template <class T, T X, template <T> class F>
struct Foo {};

template <class T0, class T1, T1 X, template <T1> class F>
void f(Foo<T1, X, F>) {}
```

Works in:
* g++-10 (Ubuntu 10.4.0-4ubuntu1~22.04) 10.4.0
Doesn't work in:
* g++-11 (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
* g++-12 (Ubuntu 12.1.0-2ubuntu1~22.04) 12.1.0
* x86-64 gcc 12.2 on compiler explorer: https://godbolt.org/z/EMncPKcea

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

end of thread, other threads:[~2023-08-07 23:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19 16:11 [Bug c++/108179] New: [11/12 regression] ICE related to template template parameters in tsubst, at cp/pt.cc:15782 s at stu dot scot
2022-12-19 16:22 ` [Bug c++/108179] [11/12/13 " pinskia at gcc dot gnu.org
2022-12-19 16:28 ` pinskia at gcc dot gnu.org
2022-12-21 12:44 ` rguenth at gcc dot gnu.org
2022-12-21 15:39 ` ppalka at gcc dot gnu.org
2023-03-10 18:52 ` jason at gcc dot gnu.org
2023-03-15 12:45 ` cvs-commit at gcc dot gnu.org
2023-03-15 12:45 ` cvs-commit at gcc dot gnu.org
2023-03-15 12:47 ` [Bug c++/108179] [11/12 " jason at gcc dot gnu.org
2023-03-15 12:55 ` s at stu dot scot
2023-04-22  0:31 ` jason at gcc dot gnu.org
2023-05-29 10:07 ` jakub at gcc dot gnu.org
2023-07-20  1:10 ` jason at gcc dot gnu.org
2023-07-26 21:22 ` cvs-commit at gcc dot gnu.org
2023-07-26 21:22 ` cvs-commit at gcc dot gnu.org
2023-08-07 23:27 ` cvs-commit 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).