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

            Bug ID: 96872
           Summary: [11 Regression] ICE: Segmentation fault
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de
  Target Milestone: ---

Hi gcc-team,

the following code ices

```
template <typename> struct concat_view {
  struct {
    template <typename> using constify_if = int;
    using concat_view_t = constify_if<concat_view>;
  };
};
```

https://godbolt.org/z/db3qq6

with

> g++-git -std=c++2a

and outputs

```
ice.cpp: In substitution of ‘template<class> template<class> using constify_if
= int [with <template-parameter-2-1> = concat_view< <template-parameter-1-1> >;
<template-parameter-1-1> = <template-parameter-1-1>]’:
ice.cpp:4:50:   required from here
ice.cpp:4:50: internal compiler error: Segmentation fault
    4 |     using concat_view_t = constify_if<concat_view>;
      |                                                  ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
```

Reply via email to