| Thread overview |
|---|
April 02, 2005 C++ bug: incorrect treatment of n-level member typedef access | ||||
|---|---|---|---|---|
| ||||
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 Re: C++ bug: incorrect treatment of n-level member typedef access | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Matthew | Fixed. -Walter | |||
April 21, 2005 Re: C++ bug: incorrect treatment of n-level member typedef access | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter | Excellent! Now for them subscript bugs. :-) "Walter" <newshound@digitalmars.com> wrote in message news:d46pd4$1ich$1@digitaldaemon.com... > Fixed. -Walter > > | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply