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] PR c++/45114 - Support alias templates


On 11/07/2011 10:54 AM, Dodji Seketeli wrote:
I didn't realize the elaborated-type-specifier case. Fixed now.

There still seem to be problems printing the scope:


namespace N
{
  template <class T> using U = T*;
};

void f(N::U<int>) { blah; }

------------
wa.C: In function ‘void N::f(U<int>)’:
wa.C:6:21: error: ‘blah’ was not declared in this scope

Note how the N:: is attached to the function rather than the parameter type. I wonder how that happens...

But this patch is close enough; go ahead and check it in as is and fix this issue afterwards.

Jason


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