[Bug c++/20313] poor diagnostic

2010-06-05 Thread igodard at pacbell dot net
--- Comment #4 from igodard at pacbell dot net 2010-06-06 00:50 --- Wow - a blast from the past! FWIW, I still think that the "" is confusing. That 4.6 drops one of the messages is an improvement though... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20313

[Bug c++/20313] poor diagnostic

2010-06-05 Thread manu at gcc dot gnu dot org
--- Comment #3 from manu at gcc dot gnu dot org 2010-06-06 00:14 --- In GCC 4.6 the output is: /home/manuel/pr20313.C:10:30: error: invalid use of incomplete type ‘struct s< >’ /home/manuel/pr20313.C:5:22: error: declaration of ‘struct s< >’ -- manu at gcc dot gnu dot org changed:

[Bug c++/20313] poor diagnostic

2010-06-05 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2010-06-06 00:13 --- This testcase does show PR99 but that is not what this PR is about. The diagnostics of GCC would be clearer if it said: /home/manuel/pr20313.C:10:30: error: invalid use of incomplete type ‘struct s<>’ /home/manuel/pr20

[Bug c++/20313] poor diagnostic

2005-03-04 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-04 14:51 --- The only poor diagnostic is that in the following code: template struct s; template s::s(int j) {} We don't print out s but print out s< > which really is the same problem as the following too: template s