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.

Reply via email to