This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20311] poor diagnostic
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2005 07:35:32 -0000
- Subject: [Bug c++/20311] poor diagnostic
- References: <20050304071126.20311.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2005-03-04 07:35 -------
To tell you the truth, a template is not a type. A template specialization (as
in: foo<int>) is a type, but not a template. So, this is correct. The error
happens because "foo" does not name a type and thus P cannot be deduced.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20311