public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Confusing errormessage with implicit typename
@ 2004-09-02  9:13 Nicolas Pavlidis
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Pavlidis @ 2004-09-02  9:13 UTC (permalink / raw)
  To: gcc

Hi!

This is my first posting to the list, if I made something wrong please
tell me!

Here's my problem:
Look at this peace of code:

----------8<-------------------snapp------------------------>8----------
typedef std::map<IdentifierType, ObjectCreator> CreationCallbackMap;
typedef CreationCallbackMap::iterator CreationCallbackMapIter; 
   // ^^^^^ Here the keyword 'typename' is missing
----------8<-------------------snipp------------------------>8----------

gcc 3.4.1 told me the following:

----------8<-------------------snapp------------------------>8----------
/home/pavnic/projects/converter/src/utilities/factory.h:151: error: type
`std::map<IdentifierType, ObjectCreator, std::less<IdentifierType>,
std::allocator<std::pair<const IdentifierType, ObjectCreator> > >' is
not derived from type
`Crazy_::Utilities_::ObjectFactory<AbstractProduct, ObjectCreator,
IdentifierType>' 
----------8<-------------------snipp------------------------>8----------

After a diskusion on usenet I found out that gcc 3.2 produces a more
readable message, though it's "only" a warning. Here is it:

----------8<-------------------snapp------------------------>8----------
/home/pavnic/projects/converter/src/utilities/factory.h:151: warning:
`typename  
   std::map<IdentifierType, ObjectCreator, std::less<IdentifierType>, 
   std::allocator<std::pair<const IdentifierType, ObjectCreator> >
>::iterator'  
   is implicitly a typename
/home/pavnic/projects/converter/src/utilities/factory.h:151: warning:
implicit typename is deprecated, please see the documentation for
details 
----------8<-------------------snipp------------------------>8----------

I don't know if there are other examples where errormessages got a
little bit wors in the 3.4x relaase. Maybe it is possible to make gcc
producing more readable errormessases.

Best regards,
Nicolas

P.S. I don't know how difficult it is to change such things, so please
don;t flame me :-)!
-- 
|     Nicolas Pavlidis       |       Elvis Presly:    |\ |__      |
|   Student of SE  & KM      |      "Into the goto"   | \|__|     |
|  pavnic@sbox.tugraz.at     |       ICQ #320057056      |        |
|-------------------University of Technology, Graz----------------|

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-09-04 15:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E1C2new-0007o7-00@deer.gmane.org>
2004-09-04  0:28 ` Confusing errormessage with implicit typename James E Wilson
2004-09-04  0:38   ` Joe Buck
2004-09-04 15:41   ` Nicolas Pavlidis
2004-09-04 15:48     ` Robert Dewar
2004-09-02  9:13 Nicolas Pavlidis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).