This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH for 4.0] Fix PR18681 (access checking for typedeftypes) Part 1 or 2


Nathan Sidwell wrote:


it appears that in working on DR189, I'm hitting a similar problem with


such typedefs and conversion operators. I am investigating an approach

which might help here too. I'll let you know how it turns out, and then

review this patch if needed. (I didn't know of the collision until a

few minutes ago.)


nathan



I discover some flaw in my patch and the approach used has to be revised. The flaw is that the typedef access checking is either turned on or off entirely. So it doesn't work for case like:

typedef D<T::X, XX> DD; // XX is declared by an earlier typedef

where we want to check T::X but not XX, all within the same typedef.
I am thinking some solutions and could wait for your work before continue
working on it.  The posted patches for PR18681 is retracted.

--Kriang





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]