http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46116
Summary: Allow passing of anonymous aggregates when signature matches Product: gcc Version: 4.4.5 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: robert.staudin...@gmail.com Created attachment 22105 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22105 anon-aggregate-stack.c It would be nice if GCC allowed passing of anonymous aggregates if their signatures match. Currently, judging from the error message, it seems like no attempt is being made at finding out if the anonymous types would match. anon-aggregate-stack.c:15: error: incompatible type for argument 1 of ‘f’ anon-aggregate-stack.c:6: note: expected ‘struct <anonymous>’ but argument is of type ‘struct <anonymous>’