Proposed change to libstdc++ demangler (was: Re: g++ rejects declaration of reference to array?)

Carlo Wood carlo@alinoe.com
Wed Oct 22 21:32:00 GMT 2003


On Wed, Oct 22, 2003 at 11:32:57AM -0500, Benjamin Kosnik wrote:
> 
> >Apparently this should be changed to:
> >
> >    // <Q>[K|V|r]+A<I>  ==>  [ const| volatile| restrict]+ (Q) [I]
> >
> >where the <Q> is not allowed to end on [K|V|r]+.
> >
> >In less formal words, the 'const' etc. "falls through" the left brace
> >and
> >         int ( const&) [3]    becomes   int const (&) [3]
> 
> Did you have a patch for this?

No, I was waiting till someone agreed / disagreed with the idea
behind the patch.  If you agree, then I will write the patch
and submit it for review the usual way.

-- 
Carlo Wood <carlo@alinoe.com>



More information about the Libstdc++ mailing list