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

--- Comment #5 from Peter Damianov <peter0x44 at disroot dot org> ---
This still happens on current gcc 15 trunk.

This also applies in to instances like:

```
struct s {};
void f (s) {}

void foo() {
    f(2.0f);
};
```

Which results in:
<source>: In function 'void foo()':
<source>:5:7: error: could not convert '2.0e+0f' from 'float' to 's'
    5 |     f(2.0f);
      |       ^~~~
      |       |
      |       float

https://gcc.godbolt.org/z/6bxajbrhW

Reply via email to