[Bug c++/43113] too long diagnostics in some cases of recursive template instantiation

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 18 13:57:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43113

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
I came to a similar test-case, which is an invalid code. But maybe a different
kind of issue:

$ cat error-reduce.ii
template <typename> struct vec
{
  static vec<bool> plus_negates struct repeat_factor;
    vec < repeat_factor > repeat_factor_vec fini_reassoc (
    {
  plus_negates

$ gcc error-reduce.ii

...

error-reduce.ii:4:27: fatal error: template instantiation depth exceeds maximum
of 900 (use -ftemplate-depth= to increase the maximum)
     vec < repeat_factor > repeat_factor_vec fini_reassoc (
                           ^~~~~~~~~~~~~~~~~


More information about the Gcc-bugs mailing list