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

--- Comment #25 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to AK from comment #24)
> The recent error messages look much better. Maybe we can close this.
> 
> prog.cpp: In member function ‘void A::bar()’:
> prog.cpp:6:23: error: could not convert ‘A::foo()’ from ‘void’ to ‘bool’
>    void bar() { if (foo()) ; }

There are other issues being tracked here, like the one in comment 12.

Reply via email to