public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/114497] New: Alias CTAD crashes
@ 2024-03-27 10:35 hokein.wu at gmail dot com
  2024-03-27 11:35 ` [Bug c++/114497] " centurionn009 at gmail dot com
  2024-03-27 14:05 ` ppalka at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: hokein.wu at gmail dot com @ 2024-03-27 10:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114497
           Summary: Alias CTAD crashes
           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: ---

Crashes on gcc trunk.

See https://gcc.godbolt.org/z/EErMqe44o

```
template <template <typename> typename T>
struct K {};

template <typename U, int...N>
class Foo {};

template <template<typename> typename TTP,
          int...N>
using Bar = Foo<K<TTP>, N...>; 

template <class T>
class Container {};
Bar t = Foo<K<Container>, 1>();

```

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

* [Bug c++/114497] Alias CTAD crashes
  2024-03-27 10:35 [Bug c++/114497] New: Alias CTAD crashes hokein.wu at gmail dot com
@ 2024-03-27 11:35 ` centurionn009 at gmail dot com
  2024-03-27 14:05 ` ppalka at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: centurionn009 at gmail dot com @ 2024-03-27 11:35 UTC (permalink / raw)
  To: gcc-bugs

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

Centurion <centurionn009 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |centurionn009 at gmail dot com

--- Comment #1 from Centurion <centurionn009 at gmail dot com> ---
Looks like P114377 dublicate. Here is same problem with missed TEMPLATE_DECL in
condition: parm gets nullptr from DECL_INITIAL, instead of getting
TEMPLATE_TEMPLATE_PARM from TREE_TYPE.

https://gcc.gnu.org/pipermail/gcc-patches/2024-March/648338.html

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

* [Bug c++/114497] Alias CTAD crashes
  2024-03-27 10:35 [Bug c++/114497] New: Alias CTAD crashes hokein.wu at gmail dot com
  2024-03-27 11:35 ` [Bug c++/114497] " centurionn009 at gmail dot com
@ 2024-03-27 14:05 ` ppalka at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ppalka at gcc dot gnu.org @ 2024-03-27 14:05 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Great, let's close this as a dup then.

*** This bug has been marked as a duplicate of bug 114377 ***

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

end of thread, other threads:[~2024-03-27 14:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-27 10:35 [Bug c++/114497] New: Alias CTAD crashes hokein.wu at gmail dot com
2024-03-27 11:35 ` [Bug c++/114497] " centurionn009 at gmail dot com
2024-03-27 14:05 ` 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).