This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21976] Incomplete types are not detected at template definition time
- From: "ppluzhnikov at charter dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Oct 2006 17:34:06 -0000
- Subject: [Bug c++/21976] Incomplete types are not detected at template definition time
- References: <bug-21976-253@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from ppluzhnikov at charter dot net 2006-10-19 17:34 -------
Here is another (very similar) test case:
template <class T> struct Dict {
struct Iterator;
Iterator begin() { return Iterator(); } // incomplete
};
template <class T> struct Dict<T>::Iterator { Iterator() { } };
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21976