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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|fmtlib named argument       |[14/15 Regression] fmtlib
                   |compiler error introduced   |named argument compiler
                   |in g++-14.1                 |error introduced in
                   |                            |g++-14.1
   Target Milestone|---                         |14.2
     Ever confirmed|0                           |1
           Keywords|needs-reduction             |rejects-valid
   Last reconfirmed|                            |2024-05-08
             Status|UNCONFIRMED                 |NEW

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
typedef decltype(sizeof(1)) size_t;
struct udl_arg {
  const char *str;
  template <typename T> auto operator=(T &&value) const -> int {}
};
constexpr auto operator""_a(const char *s, size_t) -> udl_arg
{
  return {""};
}
template <typename T> void h(T &&);
template<int T>
int test(int a)
{
        h("t"_a="t");
}
auto t = test<1>(1);
````

Reply via email to