aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/parse.c
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2010-02-02 14:05:50 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2010-02-02 14:05:50 +0100
commit096bfdb1123dc93ac64aeb5324f326c9e7731e88 (patch)
tree5e4c97cd28b2ba7de1404f307c949e7551416166 /gcc/fortran/parse.c
parentc9c27b723cf59fc765f46c4bc0fbda82840c0f5b (diff)
downloadgcc-096bfdb1123dc93ac64aeb5324f326c9e7731e88.zip
gcc-096bfdb1123dc93ac64aeb5324f326c9e7731e88.tar.gz
gcc-096bfdb1123dc93ac64aeb5324f326c9e7731e88.tar.bz2
re PR fortran/42650 (F90: DT function with in-line DT definition and RESULT is rejected)
2010-02-02 Tobias Burnus <burnus@net-b.de> PR fortran/42650 * parse.c (decode_specification_statement): Use sym->result not * sym. 2010-02-02 Tobias Burnus <burnus@net-b.de> PR fortran/42650 * gfortran.dg/func_result_5.f90: New test. From-SVN: r156449
Diffstat (limited to 'gcc/fortran/parse.c')
-rw-r--r--gcc/fortran/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c
index 8f7ec29..9e8a123 100644
--- a/gcc/fortran/parse.c
+++ b/gcc/fortran/parse.c
@@ -111,7 +111,7 @@ decode_specification_statement (void)
match ("import", gfc_match_import, ST_IMPORT);
match ("use", gfc_match_use, ST_USE);
- if (gfc_current_block ()->ts.type != BT_DERIVED)
+ if (gfc_current_block ()->result->ts.type != BT_DERIVED)
goto end_of_block;
match (NULL, gfc_match_st_function, ST_STATEMENT_FUNCTION);