Bug #79654 [Opn]: improper member use in zend_inheritance.c
Edit report at https://bugs.php.net/bug.php?id=79654&edit=1
ID: 79654
Updated by: nikic@php.net
Reported by: g dot fischer at ah-consulting dot net
Summary: improper member use in zend_inheritance.c
Status: Open
Type: Bug
Package: Compile Failure
Operating System: solaris 11
PHP Version: 7.4.6
Block user comment: N
Private report: N
New Comment:
@alexinbeijing: Yes, that's fine. Certainly not the only compiler bug we work around.
It should be sufficient to make the nested structs named, not the union itself. We use anonymous
unions in quite a few other places I believe.
Previous Comments:
------------------------------------------------------------------------
[2020-06-08 20:49:11] alexinbeijing at gmail dot com
Maintainers: Would you like a patch which converts the use of anonymous unions to ordinary, named
unions, in the hopes of better compatibility with a wider range of C compilers?
It will certainly make the code a tiny bit more verbose.
------------------------------------------------------------------------
[2020-05-30 12:47:22] g dot fischer at ah-consulting dot net
correct but it doesn't matter because the same error comes up with later versions as well. it
seems although anonymous structs and unions are supported, nesting them like zend_inheritance.c does
is not.
so just to be sure it's a compiler specific issue i ran it through gcc and ...
/mnt/x36/dev/php-7.4.6/ext/standard/base64.c:855:1: internal compiler error: in
simplify_binary_operation_1, at simplify-rtx.c:2966
oh my, that's a first. i don't remember having a program which managed to stop one and
crash another compiler. 7.4 is definitely not for me.
------------------------------------------------------------------------
[2020-05-30 12:22:44] cmb@php.net
> sunpro 5.12
According to Wikipedia[1], sunpro 5.12 is part of Oracle Solaris
Studio 12.3, which has been released in December 2011.
[1] <https://en.wikipedia.org/wiki/Oracle_Developer_Studio#History>
------------------------------------------------------------------------
[2020-05-30 09:54:10] g dot fischer at ah-consulting dot net
it does support both.
------------------------------------------------------------------------
[2020-05-30 09:49:12] nikic@php.net
I have no idea what this error is supposed to mean. Does this compiler not support anonymous unions
and structs or something?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79654
--
Edit this bug report at https://bugs.php.net/bug.php?id=79654&edit=1
Thread (7 messages)