c++/6601: [parser] Parse error when using :: qualified name in template

Reiner Hauser rhauser@fnal.gov
Tue May 14 08:29:00 GMT 2002


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



More information about the Gcc-bugs mailing list