This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52460] Misleading error message with templated c++ code
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 02 Mar 2012 09:30:46 +0000
- Subject: [Bug c++/52460] Misleading error message with templated c++ code
- Auto-submitted: auto-generated
- References: <bug-52460-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52460
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-03-02
Ever Confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-02 09:30:46 UTC ---
Clang gives a very similar error but Comeau gives a better one:
"ComeauTest.c", line 4: error: incomplete type is not allowed
typename T::Type var;
^
detected during:
instantiation of class "Base<T> [with T=Derived<int>]" at line 7
instantiation of class "Derived<U> [with U=int]" at line 13