https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80801
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Oh, in fact you're calling the C++ compiler, but reported it for Component=c
The wording is the same but location info is slightly different between the
two:
v.c: In function ‘main’:
v.c:7:10: error: void value not ignored as it ought to be
return func();
^~~~~~
tmp$ g++ v.c
v.c: In function ‘int main()’:
v.c:7:15: error: void value not ignored as it ought to be
return func();
^
