Permalink
Browse files

Bug 733856 - segfault in QGListIterator while parsing fortran code

Problem with variables with the name type versus type definitions.
type followed by = is recognized as not being a type definition instead of the use of a variable.
  • Loading branch information...
albert-github committed Jul 30, 2014
1 parent c9d816a commit aac81f8bfe8298aa0839bb2d7c70ea75149cdffb
Showing with 3 additions and 0 deletions.
  1. +2 −0 src/fortrancode.l
  2. +1 −0 src/fortranscanner.l
@@ -1128,6 +1128,8 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
}
YY_FTN_RESET
}
<*>^{BS}"type"{BS}"=" { g_code->codify(yytext); }
<*>. {
g_code->codify(yytext);
}
@@ -739,6 +739,7 @@ private {
{ID} {
}
^{BS}"type"{BS_}"is"/{BS_} { }
^{BS}"type"{BS}"=" { }
}
<AttributeList>{
{COMMA} {}

0 comments on commit aac81f8

Please sign in to comment.