[PATCH] analyzer: add test coverage for gfortran ICE fix [PR 93779]

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] analyzer: add test coverage for gfortran ICE fix [PR 93779]

David Malcolm
PR analyzer/93779 reports an ICE in gfortran with -fanalyzer
that was fixed for GCC 10 by a workaround in
f76a88ebf089871dcce215aa0cb1956ccc060895; the tree code in
question is a FUNCTION_DECL.

Given that I want to rework the above patch at some point, it seems
prudent to add test coverage to ensure the ICE doesn't come back,
which this patch does.

Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.

OK for master?

gcc/testsuite/ChangeLog:
        PR analyzer/93779
        * gfortran.dg/analyzer/pr88304-2.f90: New test.
---
 gcc/testsuite/gfortran.dg/analyzer/pr88304-2.f90 | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 gcc/testsuite/gfortran.dg/analyzer/pr88304-2.f90

diff --git a/gcc/testsuite/gfortran.dg/analyzer/pr88304-2.f90 b/gcc/testsuite/gfortran.dg/analyzer/pr88304-2.f90
new file mode 100644
index 00000000000..0aa02440152
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/analyzer/pr88304-2.f90
@@ -0,0 +1 @@
+include "../../gfortran.fortran-torture/compile/pr88304-2.f90"
--
2.21.0