public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/114901] New: GCC internal_error on CTAD alias
@ 2024-04-30 20:20 hokein.wu at gmail dot com
  2024-04-30 20:35 ` [Bug c++/114901] " mpolacek at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: hokein.wu at gmail dot com @ 2024-04-30 20:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114901
           Summary: GCC internal_error on CTAD alias
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hokein.wu at gmail dot com
  Target Milestone: ---

GCC (trunk) crashes on the following code:

https://godbolt.org/z/43Tqf4qs9


```
template <class D>
constexpr bool C = sizeof(D);


template <typename U>
struct T {

  template<typename V, typename N>
  struct Foo {
    Foo(V, N);
  };

  template<typename X, typename N>
  requires (C<N>) // removes the require-clause will make the crash disappear
  Foo(X, N) -> Foo<X, N>;

  template <typename Y, typename Y2, int N = sizeof(Y2)>
  using AFoo = Foo<decltype(N), Y2>;
};

T<double>::AFoo s{1, 2};

```

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

end of thread, other threads:[~2024-05-13 15:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-30 20:20 [Bug c++/114901] New: GCC internal_error on CTAD alias hokein.wu at gmail dot com
2024-04-30 20:35 ` [Bug c++/114901] " mpolacek at gcc dot gnu.org
2024-04-30 20:38 ` mpolacek at gcc dot gnu.org
2024-04-30 20:38 ` mpolacek at gcc dot gnu.org
2024-05-02 10:56 ` rguenth at gcc dot gnu.org
2024-05-13 13:53 ` cvs-commit at gcc dot gnu.org
2024-05-13 15:39 ` cvs-commit at gcc dot gnu.org
2024-05-13 15:40 ` ppalka 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).