dynamic_cast<T>(v) fails for T qualified from global namespace

Neil Booth neil@daikokuya.demon.co.uk
Fri Aug 31 14:24:00 GMT 2001


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.



More information about the Gcc-bugs mailing list