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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #0)
> For example, one could do -Wtemplate-depth=17
> -ftemplate-depth=1024 to get a warning when the pre-C++11 limit is reached,
> but only actually fail if the post-C++11 limit is reached.

Is this just a hypothetical example? It doesn't seem useful to me.

No useful post-C++11 code will compile with the old limit, so every program
that uses libstdc++ would warn for -Wtemplate-depth=17

Reply via email to