+2013-07-17 Mikael Morin <mikael@gcc.gnu.org>
+ Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/57895
+ * match.c (gfc_match_name): Ensure that the error
+ message regarding -fdollar-ok gets printed.
+ (gfc_match_common): Avoid multiple freeing.
+
2013-07-16 Tobias Burnus <burnus@net-b.de>
PR fortran/57912
PR fortran/37336
* trans-decl.c (init_intent_out_dt): Call finalizer
- when approriate.
+ when appropriate.
2013-06-08 Tobias Burnus <burnus@net-b.de>
2013-04-08 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/56782
- * frontend-passes.c (callback_reduction): Dont't do
+ * frontend-passes.c (callback_reduction): Don't do
any simplification if there is only a single element
which has an iterator.
if (c == '$' && !gfc_option.flag_dollar_ok)
{
- gfc_error ("Invalid character '$' at %C. Use -fdollar-ok to allow it "
- "as an extension");
+ gfc_fatal_error ("Invalid character '$' at %L. Use -fdollar-ok to allow "
+ "it as an extension", &old_loc);
return MATCH_ERROR;
}
gfc_syntax_error (ST_COMMON);
cleanup:
- if (old_blank_common)
- old_blank_common->common_next = NULL;
- else
- gfc_current_ns->blank_common.head = NULL;
gfc_free_array_spec (as);
return MATCH_ERROR;
}
+2013-07-17 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/57895
+ * gfortran.dg/dollar_sym_3.f: New.
+ * gfortran.dg/dollar_sym_1.f90: Update dg-error.
+
2013-07-16 Iain Sandoe <iain@codesourcery.com>
PR target/55654
! Variable names containing $ signs
!
REAL*4 PLT$C_HOUSTPIX ! { dg-error "Invalid character '\\$'" }
- INTEGER PLT$C_COMMAND ! { dg-error "Invalid character '\\$'" }
- PARAMETER (PLT$B_OPC=0) ! { dg-error "Invalid character '\\$'" }
- common /abc$def/ PLT$C_HOUSTPIX, PLT$C_COMMAND ! { dg-error "Invalid character '\\$'" }
+ INTEGER PLT$C_COMMAND ! Unreachable as the error above is now fatal
+ PARAMETER (PLT$B_OPC=0) ! Unreachable as the error above is now fatal
+ common /abc$def/ PLT$C_HOUSTPIX, PLT$C_COMMAND ! Unreachable as the error above is now fatal
end
--- /dev/null
+! { dg-do compile }
+!
+! PR fortran/57895
+!
+! Contributed by Vittorio Zecca
+!
+c Segmentation fault in gfc_restore_last_undo_checkpoint
+ COMMON RADE3155V62$JUTMU9L9E(3,3,3), LADE314JUTMP9 ! { dg-error "Invalid character '\\$' at .1.. Use -fdollar-ok to allow it as an extension" }
+ +LHEDDJNTMP9L(3,3,3)
+ end