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

--- Comment #3 from Antony Polukhin <antoshkka at gmail dot com> ---
Diagnostic with trunk (GCC-16) is
```
<source>: In function 'void sample(my_vector&, my_iterator)':
<source>:5:19: error: cannot convert 'my_iterator' to 'int'
    5 |     vec.push_back(it);
      |                   ^~
      |                   |
      |                   my_iterator
<source>:1:35: note: initializing argument 1 of 'void
my_vector::push_back(int)'
    1 | struct my_vector { void push_back(int); };
      |                                   ^~~
Compiler returned: 1
```

but he fix-it hint "possible fix: dereference with '*'" is still missing

Reply via email to