Thread overview
C++ bug: incorrect treatment of n-level member typedef access
Apr 02, 2005
Matthew
Apr 20, 2005
Walter
Apr 21, 2005
Matthew
April 02, 2005
    struct string
    {
        static const int    npos = -1;
    };

    struct pair
    {
        typedef string  first_type;
        typedef string  second_type;
    };

    struct container
    {
        typedef pair    value_type;
    };

    int main()
    {
        typedef container   container_t;

        return container_t::value_type::first_type::npos;
    }


This one's causing problems all over the place. All other compilers accept this without complaint.





April 20, 2005
Fixed. -Walter


April 21, 2005
Excellent!

Now for them subscript bugs. :-)

"Walter" <newshound@digitalmars.com> wrote in message news:d46pd4$1ich$1@digitaldaemon.com...
> Fixed. -Walter
>
>