fortran: Make sure not to index kinds out of bounds
commit257de6597cd7fb0f7cd75d20c67c0de1d85d491a
authorColomban Wendling <ban@herbesfolles.org>
Fri, 1 Aug 2014 14:05:09 +0000 (1 16:05 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Fri, 1 Aug 2014 14:05:09 +0000 (1 16:05 +0200)
tree91aa71b20085dbe7bbfc3e2fe1d52d7152e18fdc
parente1988964c17b57fdaf7741105d384235fec1bff1
fortran: Make sure not to index kinds out of bounds

This also makes recent GCC shut up about indexing below the bounds as
it detected the code checked for a negative index yet didn't guard the
actual access.  For now GCC doesn't understand the more comprehensive
check, but it might come back if GCC becomes smart enough.

Anyway, this makes the Assert() more correct, and addition of the
explicit kinds array size makes sure any future kind addition won't
miss its entry.
tagmanager/ctags/fortran.c