Commit fa8df9de by Tobias Burnus Committed by Tobias Burnus

resolve.c (resolve_ordinary_assign): Improve error wording.

2012-01-10  Tobias Burnus  <burnus@net-b.de>

        * resolve.c (resolve_ordinary_assign): Improve error wording.

2012-01-10  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/class_39.f03: Update dg-error string.

From-SVN: r183056
parent 390b24dc
2012-01-10 Tobias Burnus <burnus@net-b.de>
* resolve.c (resolve_ordinary_assign): Improve error wording.
2012-01-09 Paul Thomas <pault@gcc.gnu.org> 2012-01-09 Paul Thomas <pault@gcc.gnu.org>
PR fortran/51791 PR fortran/51791
......
...@@ -9208,8 +9208,8 @@ resolve_ordinary_assign (gfc_code *code, gfc_namespace *ns) ...@@ -9208,8 +9208,8 @@ resolve_ordinary_assign (gfc_code *code, gfc_namespace *ns)
and coindexed; cf. F2008, 7.2.1.2 and PR 43366. */ and coindexed; cf. F2008, 7.2.1.2 and PR 43366. */
if (lhs->ts.type == BT_CLASS) if (lhs->ts.type == BT_CLASS)
{ {
gfc_error ("Variable must not be polymorphic in assignment at %L " gfc_error ("Variable must not be polymorphic in intrinsic assignment at "
"- check that there is a matching specific subroutine " "%L - check that there is a matching specific subroutine "
"for '=' operator", &lhs->where); "for '=' operator", &lhs->where);
return false; return false;
} }
......
2012-01-10 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/class_39.f03: Update dg-error string.
2012-01-10 Richard Guenther <rguenther@suse.de> 2012-01-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/50913 PR tree-optimization/50913
......
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
end type T end type T
contains contains
class(T) function add() ! { dg-error "must be dummy, allocatable or pointer" } class(T) function add() ! { dg-error "must be dummy, allocatable or pointer" }
add = 1 ! { dg-error "Variable must not be polymorphic in assignment" } add = 1 ! { dg-error "Variable must not be polymorphic in intrinsic assignment" }
end function end function
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment