• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GCC with patches for OS216


Commit MetaInfo

Revisiónf11600c98517d58c0f62df8e78f7090524f2d61b (tree)
Tiempo2018-03-21 10:07:43
AutorSteven G. Kargl <kargl@gcc....>
CommiterSteven G. Kargl

Log Message

re PR fortran/85001 (ICE in gfc_build_array_type, at fortran/trans-types.c:1420)

2018-03-20 Steven G. Kargl <kargl@gcc.gnu.org>

PR fortran/85001
* interface.c (symbol_rank): Remove bogus null pointer check that
crept in when translating a ternary operator into an if-else
constructor.

2018-03-20 Steven G. Kargl <kargl@gcc.gnu.org>

PR fortran/85001
* gfortran.dg/interface_41.f90: New test.

From-SVN: r258698

Cambiar Resumen

Diferencia incremental

--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,10 @@
1+2018-03-20 Steven G. Kargl <kargl@gcc.gnu.org>
2+
3+ PR fortran/85001
4+ * interface.c (symbol_rank): Remove bogus null pointer check that
5+ crept in when translating a ternary operator into an if-else
6+ constructor.
7+
18 2018-03-19 Thomas Koenig <tkoenig@gcc.gnu.org>
29
310 PR fortran/84931
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -1268,7 +1268,7 @@ symbol_rank (gfc_symbol *sym)
12681268 {
12691269 gfc_array_spec *as = NULL;
12701270
1271- if (sym->ts.type == BT_CLASS && CLASS_DATA (sym) && CLASS_DATA (sym)->as)
1271+ if (sym->ts.type == BT_CLASS && CLASS_DATA (sym))
12721272 as = CLASS_DATA (sym)->as;
12731273 else
12741274 as = sym->as;
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
1+2018-03-20 Steven G. Kargl <kargl@gcc.gnu.org>
2+
3+ PR fortran/85001
4+ * gfortran.dg/interface_41.f90: New test.
5+
16 2018-03-20 Jakub Jelinek <jakub@redhat.com>
27
38 PR debug/84875
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/interface_41.f90
@@ -0,0 +1,19 @@
1+! { dg-do compile }
2+! PR fortran/85001
3+! Contributed by Gerhard Steinmetz.
4+program p
5+ type t
6+ end type
7+ call s
8+contains
9+ real function f(x)
10+ class(t) :: x
11+ dimension :: x(:)
12+ f = 1.0
13+ end
14+ subroutine s
15+ type(t) :: x(2)
16+ real :: z
17+ z = f(x) ! { dg-error "Rank mismatch in argument" }
18+ end
19+end