Re: static_assert

2019-05-22 Thread Kamil Rytarowski
Perl is broken as it tries to detect C11 macro without compiler support. This patch is wrong. We shall not overwrite compiler builtins. It already caused enough issues in certain cases (like __func__ overload). On 22.05.2019 20:41, m...@netbsd.org wrote: > How is this for a proposed patch? > >

Re: static_assert

2019-05-22 Thread maya
How is this for a proposed patch? Provide a fallback definition for _Static_assert for when the compiler doesn't provide it (it doesn't have to for pre-C11). Fixes https://rt.perl.org/Public/Bug/Display.html?id=134023 Index: cdefs.h =

Re: static_assert

2019-05-22 Thread maya
perl is not broken. providing a broken macro and hoping nobody uses it on GCC is.

Re: static_assert

2019-05-22 Thread Kamil Rytarowski
On 22.05.2019 13:44, m...@netbsd.org wrote: > This is definition is causing problems. Please fix Perl to stop mixing C11 with C++98 code. This is designed (discussed and approved by Joerg) to be an extension, similarly to the code in . We explicitly allow mixing features from newer standards of C