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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC produces a warning while compiling this also which I think is the same
issue really:
```
struct tuple
{
  tuple(const float&) { }
};

void bar(tuple) {}

template <typename T>
void foo1(T value) {bar({value});}

int main() {
  foo1(12);
}
```
```
<source>: In instantiation of 'void foo1(T) [with T = int]':
<source>:13:7:   required from here
<source>:10:26: warning: narrowing conversion of 'value' from 'int' to 'float'
[-Wnarrowing]
   10 | void foo1(T value) {bar({value});}
      |                          ^~~~~
```

Reply via email to