error: expected expression before '>' token
Module:
core
**Description**
Compilation errors with gcc 16.1.0 for OpenWrt x86_64
```
from util.c:26:
util.c:130:33: error: expected expression before '>' token
130 | STATIC_ASSERT_DECL(sizeof I32df > 1);
| ^
util.c:130:1: note: in expansion of macro 'STATIC_ASSERT_DECL'
130 | STATIC_ASSERT_DECL(sizeof I32df > 1);
| ^~~~~~~~~~~~~~~~~~
perl.h:4249:36: error: bit-field '__error_if_negative' width not an integer constant
4249 | # define STATIC_ASSERT_DECL(COND) static_assert(COND, #COND)
| ^~~~~~~~~~~~~
util.c:130:1: note: in expansion of macro 'STATIC_ASSERT_DECL'
130 | STATIC_ASSERT_DECL(sizeof I32df > 1);
| ^~~~~~~~~~~~~~~~~~
util.c:131:33: error: expected expression before '>' token
131 | STATIC_ASSERT_DECL(sizeof U32of > 1);
| ^
util.c:131:1: note: in expansion of macro 'STATIC_ASSERT_DECL'
131 | STATIC_ASSERT_DECL(sizeof U32of > 1);
| ^~~~~~~~~~~~~~~~~~
perl.h:4249:36: error: bit-field '__error_if_negative' width not an integer constant
4249 | # define STATIC_ASSERT_DECL(COND) static_assert(COND, #COND)
| ^~~~~~~~~~~~~
util.c:131:1: note: in expansion of macro 'STATIC_ASSERT_DECL'
131 | STATIC_ASSERT_DECL(sizeof U32of > 1);
| ^~~~~~~~~~~~~~~~~~
util.c:133:33: error: expected expression before '>' token
133 | STATIC_ASSERT_DECL(sizeof U32xf > 1);
| ^
util.c:133:1: note: in expansion of macro 'STATIC_ASSERT_DECL'
133 | STATIC_ASSERT_DECL(sizeof U32xf > 1);
| ^~~~~~~~~~~~~~~~~~
perl.h:4249:36: error: bit-field '__error_if_negative' width not an integer constant
4249 | # define STATIC_ASSERT_DECL(COND) static_assert(COND, #COND)
| ^~~~~~~~~~~~~
util.c:133:1: note: in expansion of macro 'STATIC_ASSERT_DECL'
133 | STATIC_ASSERT_DECL(sizeof U32xf > 1);
| ^~~~~~~~~~~~~~~~~~
util.c:134:33: error: expected expression before '>' token
134 | STATIC_ASSERT_DECL(sizeof U32Xf > 1);
| ^
util.c:134:1: note: in expansion of macro 'STATIC_ASSERT_DECL'
134 | STATIC_ASSERT_DECL(sizeof U32Xf > 1);
| ^~~~~~~~~~~~~~~~~~
perl.h:4249:36: error: bit-field '__error_if_negative' width not an integer constant
4249 | # define STATIC_ASSERT_DECL(COND) static_assert(COND, #COND)
| ^~~~~~~~~~~~~
util.c:134:1: note: in expansion of macro 'STATIC_ASSERT_DECL'
134 | STATIC_ASSERT_DECL(sizeof U32Xf > 1);
| ^~~~~~~~~~~~~~~~~~
```
**Steps to Reproduce**
Use gcc 16.1.0 to compile perl 5.43.10
OpenWrt [Makefile ](https://github.com/openwrt/packages/blob/master/lang/perl/Makefile)for perl.
**Expected behavior**
Able to successfully compile.
**Perl configuration**
Perl 5.43.10
0 条评论