[Bug c++/109021] accept size parameter in extern C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109021 --- Comment #6 from Martin Uecker --- Note that I do not propose to add variably modified types to C++. This would indeed be a major extension. I simply propose to ignore the size expressions in C headers as a usability improvement. My patch I have somewhere for this are a couple lines of code. I plan to bring this up to WG21 anyway, but standards should ideally standardize things where there exists prior experience. It would be helpful if GCC takes part in this process.
[Bug c++/109021] accept size parameter in extern C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109021 --- Comment #5 from Andrew Pinski --- (In reply to Martin Uecker from comment #4) > Sorry, how can an enhancement request that addresses a real C/C++ > compatibility problem be marked "resolved invalid" ? Because GCC does like these days to add huge extensions to the C++ language. Maybe you could bring this up to WG21 (C++ standards committee) as a paper which fully thought out (and an implementation either GCC or clang as an open source example). GCC might take that implementation and have it as an extension ...
[Bug c++/109021] accept size parameter in extern C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109021 --- Comment #4 from Martin Uecker --- Sorry, how can an enhancement request that addresses a real C/C++ compatibility problem be marked "resolved invalid" ?
[Bug c++/109021] accept size parameter in extern C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109021 --- Comment #3 from Andreas Schwab --- *** Bug 110920 has been marked as a duplicate of this bug. ***
[Bug c++/109021] accept size parameter in extern C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109021 --- Comment #2 from Martin Uecker --- True. But we could still take it as a hint about where this is not useful to users to diagnose this as an error.
[Bug c++/109021] accept size parameter in extern C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109021 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski --- extern "C" just changes the language linkage but does not change the language which the declaration is written in.