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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2026-10-22
             Status|UNCONFIRMED                 |NEW

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Another test:

```
struct B { const int *p; };
struct C { const B &b; };
static int y;
constexpr C c1 = { B { &y } };
static_assert (c1.b.p == &y);
```

clang++ accepts it.

In set_up_extended_ref_temp type=B but it should be const B
([dcl.init.ref]/5.3).  So we don't mark _ZGRL2c1_ constexpr.

Reply via email to