From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9250 invoked by alias); 14 May 2002 15:36:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 9236 invoked by uid 71); 14 May 2002 15:36:02 -0000 Date: Tue, 14 May 2002 08:36:00 -0000 Message-ID: <20020514153602.9235.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Reiner Hauser Subject: Re: c++/6601: [parser] Parse error when using :: qualified name in template Reply-To: Reiner Hauser X-SW-Source: 2002-05/txt/msg00395.txt.bz2 List-Id: The following reply was made to PR c++/6601; it has been noted by GNATS. From: Reiner Hauser To: Wolfgang Bangerth Cc: gcc-gnats@gcc.gnu.org, lerdsuwa@gcc.gnu.org, gcc-bugs@gcc.gnu.org Subject: Re: c++/6601: [parser] Parse error when using :: qualified name in template Date: Tue, 14 May 2002 10:29:42 -0500 (CDT) Thanks, who would have thought about di-graphs ;) ? I hesitated a while to submit a bug report, because I thought somebody else surely must have caught this before. I finally did it since the Kai compiler compiled the code without complaints, but it turns out that it has digraphs disabled in the default mode and you have to give some --strict option to enable them. Maybe this can go into that 'bugs which aren't really bugs' web page you got ? It might give people a clue when they run into similar problems. cheers, Reiner -- Reiner Hauser Email: rhauser@fnal.gov Tel: (630) 840 8634 Fermilab, PO Box 500, MS 352, Batavia, IL 60510-0500 On Tue, 14 May 2002, Wolfgang Bangerth wrote: > > About this: > > MyTemplate<::X> test; > > This is not a bug in the parser, but has to do with di-graphs: the > sequence "<:" is considered equivalent to the token "[". Thus, inserting a > space between the "<" and "::" resolves this, making the two separate > tokens. > > Since this is standard conforming behavior, the bug report should be > closed. (There are already some reports about this in the data base, among > which is by me -- that's why I know :-) > > Regards > Wolfgang > > ------------------------------------------------------------------------- > Wolfgang Bangerth email: bangerth@math.ethz.ch > www: http://www.math.ethz.ch/~bangerth > > >