aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/decl.c
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2011-04-26 22:07:11 +0000
committerThomas Koenig <tkoenig@gcc.gnu.org>2011-04-26 22:07:11 +0000
commit3a1fd30c8a3a4474ff04b9d857deff3792fa2087 (patch)
tree44987fd72abe0fd69b95ebb2eade3764b973156a /gcc/fortran/decl.c
parent898b8927465614b911841f134f37165a613debf5 (diff)
downloadgcc-3a1fd30c8a3a4474ff04b9d857deff3792fa2087.zip
gcc-3a1fd30c8a3a4474ff04b9d857deff3792fa2087.tar.gz
gcc-3a1fd30c8a3a4474ff04b9d857deff3792fa2087.tar.bz2
decl.c (gfc_match_end): Check that the block name starts with "block@".
2011-04-26 Thomas Koenig <tkoenig@gcc.gnu.org> * decl.c (gfc_match_end): Check that the block name starts with "block@". * parse.c (gfc_build_block_ns): Make block names unique by numbering them. From-SVN: r172990
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r--gcc/fortran/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index 9efe01a..9901fb1 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -5746,7 +5746,7 @@ gfc_match_end (gfc_statement *st)
{
case COMP_ASSOCIATE:
case COMP_BLOCK:
- if (!strcmp (block_name, "block@"))
+ if (!strncmp (block_name, "block@", strlen("block@")))
block_name = NULL;
break;