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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156449
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-02-02 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/42650
+ * parse.c (decode_specification_statement): Use sym->result not sym.
+
2010-02-01 Tobias Burnus <burnus@net-b.de>
PR fortran/42922
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);
+2010-02-02 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/42650
+ * gfortran.dg/func_result_5.f90: New test.
+
2010-02-01 Tobias Burnus <burnus@net-b.de>
PR fortran/42922
--- /dev/null
+! { dg-do compile }
+!
+! PR fortran/42650
+!
+! Result type was not working
+!
+
+type(t) function func2() result(res)
+ type t
+ sequence
+ integer :: i = 5
+ end type t
+ res%i = 2
+end function func2