Failed to Parse Template and Corrupted Tags

Gustaf Waldemarson <[email protected]>
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <CABehr5fs_=Rt60O6AQC2DDZRq+GuASt-ULaU5CvKR7Vcu+BNtA@mail.gmail.com>
Hello Global Maintainers,

I seem to have run into one or possibly two bugs while trying out
Global:

Recipe:

1. Create a new directory for testing:
   - mkdir debug

2. Create a new file in the directory e.g. `main.cpp' with the contents:

    #include <iostream>

    #define TEST_MACRO struct test<

    int main(void)
    {
        std::cout << "hello, world!" << std::endl;
        return 0;
    }

3. Generate tags:
   - `gtags'
   - Bug 1: Parser error: `gtags: failed to parse template [+3
     ./main.cpp].'

4. Trying to use the generated tags then leads to possibly different
   bug:
   - `global -u'
   - Bug 2: `gtags: /home/guswal01/git/debug/GTAGS seems older
     format. Please remake tag files.'

This occured on `Global 6.5'.4 when built on Ubuntu 15.10 using the
default `sh reconf.sh && ./configure' settings.

In my opinion, failing to parse some odd C++ file is usually fine, but
in in this it seems like the tag files get corrupted somehow.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.