Re: gtags: failed to parse template
Lorenz Hübschle-Schneider <[email protected]>
| Newsgroups | gmane.comp.gnu.global.bugs |
|---|---|
| Message-ID | <[email protected]> |
Awesome, thanks. For what it's worth, this is a regression between 6.3.3 (works fine) and 6.3.4 (fails). Best, Lorenz On 30/08/16 17:53, Shigio YAMAGUCHI wrote: > Hi, > I have put the bug to the known bug list. > [http://www.gnu.org/software/global/bugs.html] > > Thank you. > > Regards, > Shigio > > > 2016-08-30 23:45 GMT+09:00 Lorenz Hübschle-Schneider <[email protected] > <mailto:[email protected]>>: > > Dear all, > > GNU global 6.5.4 has trouble with the following template specialisation snippet: > > template <typename T> > struct Foo<typename std::enable_if<sizeof(T) <= 2* sizeof(size_t)>::type> > {}; > > > gtags: failed to parse template [+2 ./foo.cpp]. > > If I use "<" instead of "<=" it still fails, but it works if I use ">". It's > probably not expecting operator< to appear inside a template. > > Cheers, > Lorenz > > > Full file, valid C++11: > > #include <type_traits> > > template <typename T, typename Enable = void> > struct Foo{}; > > template <typename T> > struct Foo<T, typename std::enable_if<(sizeof(T) < 8)>::type> > {}; > > int main(void) { > Foo<int> foo; > } > > > - fails on line 7 > > _______________________________________________ > Bug-global mailing list > [email protected] <mailto:[email protected]> > https://lists.gnu.org/mailman/listinfo/bug-global > <https://lists.gnu.org/mailman/listinfo/bug-global> > > > > > -- > Shigio YAMAGUCHI <[email protected] <mailto:[email protected]>> > PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3 _______________________________________________ Bug-global mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-global