[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/pr20313.C:5:22: note: ‘struct s’ declared here

What do you think Ivan?


-- 

manu at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||manu at gcc dot gnu dot org
 Status|RESOLVED|REOPENED
 Resolution|DUPLICATE   |


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
sanonymous ’
/home/manuel/pr20313.C:5:22: error: declaration of ‘struct sanonymous ’


-- 

manu at gcc dot gnu dot org changed:

   What|Removed |Added

   Keywords||diagnostic
   Last reconfirmed|-00-00 00:00:00 |2010-06-06 00:14:05
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20313



[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 anonymous 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

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:
templateint struct s;
templateint i si::s(int j) {}

We don't print out si but print out sanonymous  which really is the same 
problem as the 
following too:
templateint j struct s;
templateint i si::s(int j) {}

So this is a dup of bug 99.

*** This bug has been marked as a duplicate of 99 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20313