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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2025-11-10
      Known to fail|                            |4.0.4
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Full self contained testcase:
```
extern void f();
struct a
{
  template<int N> a(const int (&)[N]);
};
extern void g1(a);
void (*g2)(a);
void f()
{
        int num[] = {2, 17, 18, 19};
        g1(num);              // OK
        (g1)(num);            // OK
        (*g1)(num);           // FAILS, Regression
        g2(num);              // FAILS
        (g2)(num);            // FAILS
        (*g2)(num);           // FAILS
}

```

I will file the regression seperately.

Reply via email to