public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109021] New: accept size parameter in extern C
@ 2023-03-04 12:02 muecker at gwdg dot de
  2023-03-04 15:18 ` [Bug c++/109021] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: muecker at gwdg dot de @ 2023-03-04 12:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109021
           Summary: accept size parameter in extern C
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: muecker at gwdg dot de
  Target Milestone: ---

A problem I encounter sometimes when using newer C headers in C++ is
with functions that have array argument with a size parameter:

extern "C" void foo(int N, char buf[N]);

I think g++ should accept this in general or only for extern "C".

At least for 1D arrays this should be easy as it could simply ignore the size 
and only emit a diagnostic with -pedantic.

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

end of thread, other threads:[~2023-08-17  6:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-04 12:02 [Bug c++/109021] New: accept size parameter in extern C muecker at gwdg dot de
2023-03-04 15:18 ` [Bug c++/109021] " pinskia at gcc dot gnu.org
2023-03-04 15:31 ` muecker at gwdg dot de
2023-08-06 13:58 ` schwab@linux-m68k.org
2023-08-15 13:19 ` muecker at gwdg dot de
2023-08-15 23:53 ` pinskia at gcc dot gnu.org
2023-08-17  6:56 ` muecker at gwdg dot de

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).