[patch, middle-end] Fix PR 82976, non-trivial conversion at assignment

Thomas König tk@tkoenig.net
Sat Apr 7 18:08:00 GMT 2018


Hello world,

the attached patch fixes a middle-end bug, which caused a Fortran
regression.  The solution was given by Andrew on IRC and
in the PR, I did the testing.

Regression-tested with "configure --enable-languages=all" and
"make -k check" on x86_64-pc-linux-gnu.

OK for trunk?

Regards

	Thomas

2018-04-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
         Andrew Pinski <pinsika@gcc.gnu.org>

         PR middle-end/82976
         * match.pd: Use constant_boolean_node of correct type instead of
         boolean_true_node or boolean_false_node for simplifying
         pointer comparisons to zero.

2018-04-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR middle-end/82976
         * gfortran.dg/realloc_on_assign_16a.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: realloc_on_assign_16a.f90
Type: text/x-fortran
Size: 621 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180407/0295f69f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 569 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180407/0295f69f/attachment-0001.bin>


More information about the Fortran mailing list