diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 0d70d43..0c36fc0 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1843,11 +1843,15 @@ int findParameterList(const QString &name) ++templateDepth; pos=nextOpenPos-1; } - else + else if (nextClosePos!=-1) { --templateDepth; pos=nextClosePos-1; } + else // more >'s than <'s, see bug701295 + { + return -1; + } } else { |