mirror of git://gcc.gnu.org/git/gcc.git
coarray_38.f90: Expect error message.
gcc/testsuite/ChangeLog: 2016-10-14 Andre Vehreschild <vehre@gcc.gnu.org> * gfortran.dg/coarray_38.f90: Expect error message. gcc/fortran/ChangeLog: 2016-10-14 Andre Vehreschild <vehre@gcc.gnu.org> * resolve.c (resolve_symbol): Add unimplemented message for polymorphic types with allocatable/pointer components and coarray=lib. From-SVN: r241150
This commit is contained in:
parent
01f440383c
commit
6fd9c6f4c5
|
|
@ -1,3 +1,8 @@
|
||||||
|
2016-10-14 Andre Vehreschild <vehre@gcc.gnu.org>
|
||||||
|
|
||||||
|
* resolve.c (resolve_symbol): Add unimplemented message for
|
||||||
|
polymorphic types with allocatable/pointer components and coarray=lib.
|
||||||
|
|
||||||
2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
||||||
|
|
||||||
* trans-intrinsic.c: Include memmodel.h.
|
* trans-intrinsic.c: Include memmodel.h.
|
||||||
|
|
|
||||||
|
|
@ -13787,6 +13787,19 @@ resolve_symbol (gfc_symbol *sym)
|
||||||
(just like derived type declaration symbols have flavor FL_DERIVED). */
|
(just like derived type declaration symbols have flavor FL_DERIVED). */
|
||||||
gcc_assert (sym->ts.type != BT_UNION);
|
gcc_assert (sym->ts.type != BT_UNION);
|
||||||
|
|
||||||
|
/* Coarrayed polymorphic objects with allocatable or pointer components are
|
||||||
|
yet unsupported for -fcoarray=lib. */
|
||||||
|
if (flag_coarray == GFC_FCOARRAY_LIB && sym->ts.type == BT_CLASS
|
||||||
|
&& sym->ts.u.derived && CLASS_DATA (sym)
|
||||||
|
&& CLASS_DATA (sym)->attr.codimension
|
||||||
|
&& (sym->ts.u.derived->attr.alloc_comp
|
||||||
|
|| sym->ts.u.derived->attr.pointer_comp))
|
||||||
|
{
|
||||||
|
gfc_error ("Sorry, allocatable/pointer components in polymorphic (CLASS) "
|
||||||
|
"type coarrays at %L are unsupported", &sym->declared_at);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (sym->attr.artificial)
|
if (sym->attr.artificial)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
2016-10-14 Andre Vehreschild <vehre@gcc.gnu.org>
|
||||||
|
|
||||||
|
* gfortran.dg/coarray_38.f90: Expect error message.
|
||||||
|
|
||||||
2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||||||
|
|
||||||
* gcc.target/aarch64/spellcheck_1.c: New test.
|
* gcc.target/aarch64/spellcheck_1.c: New test.
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ end type t
|
||||||
type t2
|
type t2
|
||||||
class(t), allocatable :: caf2[:]
|
class(t), allocatable :: caf2[:]
|
||||||
end type t2
|
end type t2
|
||||||
class(t), allocatable :: caf[:]
|
class(t), allocatable :: caf[:] ! { dg-error "Sorry, allocatable/pointer components in polymorphic" }
|
||||||
type(t) :: x
|
type(t) :: x
|
||||||
type(t2) :: y
|
type(t2) :: y
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue