From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17253 invoked by alias); 2 Sep 2004 09:13:30 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 17237 invoked from network); 2 Sep 2004 09:13:28 -0000 Received: from unknown (HELO email12.aon.at) (195.3.96.112) by sourceware.org with SMTP; 2 Sep 2004 09:13:28 -0000 Received: (qmail 42318 invoked from network); 2 Sep 2004 09:13:27 -0000 Received: from n548p005.adsl.highway.telekom.at (HELO malloc.pavnic) ([62.47.12.101]) (envelope-sender ) by email12.aon.at (qmail-ldap-1.03) with SMTP for ; 2 Sep 2004 09:13:27 -0000 To: gcc@gcc.gnu.org Subject: Confusing errormessage with implicit typename From: Nicolas Pavlidis Date: Thu, 02 Sep 2004 09:13:00 -0000 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-09/txt/msg00099.txt.bz2 Message-ID: <20040902091300.X5aThKYlJcQpCmp1V3CySFLUQqMps7Hchst_WkoUl78@z> 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 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, std::allocator > >' is not derived from type `Crazy_::Utilities_::ObjectFactory' ----------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, std::allocator > >::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----------------|