This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: dynamic_cast<T>(v) fails for T qualified from global namespace
- To: Phil Edwards <pedwards at disaster dot jaj dot com>
- Subject: Re: dynamic_cast<T>(v) fails for T qualified from global namespace
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Fri, 31 Aug 2001 22:24:17 +0100
- Cc: Ben Allan <ballan at c425089-a dot plstn1 dot sfba dot home dot com>, gcc-bugs at gcc dot gnu dot org,nathan at codesourcery dot com
- References: <3B8EA08F.4D5F6E1B@c425089-a.plstn1.sfba.home.com> <20010831121702.A25049@disaster.jaj.com>
Phil Edwards wrote:-
> On Thu, Aug 30, 2001 at 01:22:39PM -0700, Ben Allan wrote:
> > Sorry if this is a duplicate report -- haven't been able to
> > browse the web archive of the bug reports (specifically, gnats
> > wants a username and password at
> > http://gcc.gnu.org/cgi-bin/gnatsweb.pl
> > just to browse priors, which is itself a bug, imo.)
>
> All it wants is 'guest' and 'guest', and I believe that it says so on that
> same page.
>
> > fp2 = dynamic_cast<::n1::foo *>(bp); // ! err
>
> Digraphs, phooey. I wish we could turn those off like trigraphs.
That would be one less gotcha for C++. I thought the idea was to have
as many as possible? 8-)
Neil.