This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56377] [4.8 Regression] <missing> template args in substitution-failure diagnostics
- From: "pl.smith.mail at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 23 Feb 2013 15:15:47 +0000
- Subject: [Bug c++/56377] [4.8 Regression] <missing> template args in substitution-failure diagnostics
- Auto-submitted: auto-generated
- References: <bug-56377-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56377
Paul Smith <pl.smith.mail at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #5 from Paul Smith <pl.smith.mail at gmail dot com> 2013-02-23 15:15:47 UTC ---
There can still be <missing> arguments before the substitution:
template <int N>
void f() {
f<N + 1>();
}
int main() {
f<0>();
}
Output:
test.cpp:3:11: error: template instantiation depth exceeds maximum of 900 (use
-ftemplate-depth= to increase the maximum) substituting âtemplate<int N> void
f() [with int N = <missing>]â
f<N + 1>();
^
...