This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39478] please improve recursive template instantiation diagnostics
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 22 Oct 2011 12:16:25 +0000
- Subject: [Bug c++/39478] please improve recursive template instantiation diagnostics
- Auto-submitted: auto-generated
- References: <bug-39478-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39478
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011-10-22
CC| |manu at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2011-10-22 12:16:25 UTC ---
I am sorry, but I don't understand what you are asking for. What kind of
message would you find more useful here?
Clang prints a similar error:
/tmp/webcompile/_25526_0.cc:11:14: error: field has incomplete type
'foo<bar<int> >'
foo< bar > p;
^
/tmp/webcompile/_25526_0.cc:4:12: note: in instantiation of template class
'bar<int>' requested here
typename T::type dummy();
^
/tmp/webcompile/_25526_0.cc:14:19: note: in instantiation of template class
'foo<bar<int> >' requested here
foo< bar< int > > x;
^
/tmp/webcompile/_25526_0.cc:2:8: note: definition of 'foo<bar<int> >' is not
complete until the closing '}'
struct foo
^
but the last message seems even more confusing.