This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] PR c++/45114 - Support alias templates
- From: Jason Merrill <jason at redhat dot com>
- To: Dodji Seketeli <dodji at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Benjamin De Kosnik <bkoz at redhat dot com>
- Date: Mon, 07 Nov 2011 13:27:25 -0500
- Subject: Re: [C++ PATCH] PR c++/45114 - Support alias templates
- References: <m34nyuz1vt.fsf@redhat.com> <4EA9CB03.5060708@redhat.com> <m3wrbem9a4.fsf@redhat.com> <4EB61005.5020001@redhat.com> <m3y5vskjx1.fsf@redhat.com>
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