This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
This patch fixes PR33288: when we simplify an expression like (/1,2/) + 1 that contains an array constructor, some elements can be arrays themselves, like in (/1,2,(/3/)/), in which case the simplification routine went wrong. In fact, when we encounter this case, we simply need to call the simplification routine recursively and all is fine. This fixes unary and binary operators (where at least one of the arguments is an array constructor). Bootstrapped and regtested on x86_64-linux (-m64 and -m32), comes with a testcase. OK to commit? FX :ADDPATCH fortran:
Attachment:
pr33288.ChangeLog
Description: Binary data
Attachment:
pr33288.diff
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |