go: fix f(g()) where g returns zero-sized type
authorIan Lance Taylor <iant@golang.org>
Fri, 15 Jul 2022 15:02:13 +0000 (08:02 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 15 Jul 2022 15:04:42 +0000 (08:04 -0700)
commit5054bc001d9b66fe68d938790f08f48621c6b976
tree736f2252353b2721e4675ba856cd73c0e0a26b13
parent91259dd850bcbf4c0b5bdcd8304d67b883b73cc0
go: fix f(g()) where g returns zero-sized type

Test case is https://go.dev/cl/417481.

Fixes golang/go#23868

* go-gcc.cc (Gcc_backend::call_expression): Handle a void
argument, as for f(g()) where g returns a zero-sized type.
gcc/go/go-gcc.cc