public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/46116] New: Allow passing of anonymous aggregates when signature matches
@ 2010-10-21 12:50 robert.staudinger at gmail dot com
  2010-10-21 18:36 ` [Bug c/46116] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: robert.staudinger at gmail dot com @ 2010-10-21 12:50 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: robert.staudinger@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>’


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-04-03  5:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-21 12:50 [Bug c/46116] New: Allow passing of anonymous aggregates when signature matches robert.staudinger at gmail dot com
2010-10-21 18:36 ` [Bug c/46116] " pinskia at gcc dot gnu.org
2010-10-22  6:04 ` robert.staudinger at gmail dot com
2021-10-16  7:26 ` muecker at gwdg dot de
2024-04-02 22:10 ` pinskia at gcc dot gnu.org
2024-04-03  5:37 ` uecker at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).