[Bug c++/20311] poor diagnostic

2005-03-04 Thread igodard at pacbell dot net
--- Additional Comments From igodard at pacbell dot net 2005-03-04 08:51 --- Sorry guys :-) After a while I forget, and then I run across it again :-( Ivan -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20311

[Bug c++/20311] poor diagnostic

2005-03-03 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-04 07:51 --- Yes and this is a dup of bug 16068 which shows that ICC has the same problem and you filed the same bug before. *** This bug has been marked as a duplicate of 16068 *** -- What|Removed

[Bug c++/20311] poor diagnostic

2005-03-03 Thread igodard at pacbell dot net
--- Additional Comments From igodard at pacbell dot net 2005-03-04 07:47 --- "To tell you the truth, a template is not a type." Exactly, yet the diagnostic says it is an (unknown) type, which is false. Yes, I know this code is an error; that's not the reported bug. The report is about

[Bug c++/20311] poor diagnostic

2005-03-03 Thread giovannibajo at libero dot it
--- 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) is a type, but not a template. So, this is correct. The error happens because "foo" does not name a type and thus P ca