diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-30 09:27:48 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-30 09:27:48 +0000 |
commit | 279dc72feede56719335d771f23babe9330096a3 (patch) | |
tree | ff400275b8d7c6494715874e348b5de2b2f15faa /gcc/fortran/decl.c | |
parent | 744c2d412b76c9b2abc14176d120429d7207ad95 (diff) | |
download | gcc-279dc72feede56719335d771f23babe9330096a3.tar.gz |
2009-11-30 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 154750 (or near)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@154757 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r-- | gcc/fortran/decl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 08d2bd69ddf..23ac5c39424 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -1656,12 +1656,10 @@ variable_decl (int elem) match m; gfc_try t; gfc_symbol *sym; - locus old_locus; initializer = NULL; as = NULL; cp_as = NULL; - old_locus = gfc_current_locus; /* When we get here, we've just matched a list of attributes and maybe a type and a double colon. The next thing we expect to see @@ -1865,7 +1863,7 @@ variable_decl (int elem) m = MATCH_ERROR; } - if (gfc_pure (NULL)) + if (gfc_pure (NULL) && gfc_state_stack->state != COMP_DERIVED) { gfc_error ("Initialization of pointer at %C is not allowed in " "a PURE procedure"); |