Re: [C++ PATCH] PR c++/45114 - Support alias templates

2011-11-08 Thread H.J. Lu
On Mon, Nov 7, 2011 at 7:54 AM, Dodji Seketeli wrote: >> On 11/05/2011 07:36 PM, Dodji Seketeli wrote: >> > +#define TYPE_DECL_NAMES_ALIAS_TEMPLATE_P(NODE)                         \ >> >> This doesn't seem to be needed anymore. > > Removed, thanks. > >> >> > +dump_alias_template_specialization (tr

Re: [C++ PATCH] PR c++/45114 - Support alias templates

2011-11-07 Thread Jason Merrill
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 using U = T*; }; void f(N::U) { blah; } wa.C: In function ‘void N::f(U)’: wa.C:6:21: error

Re: [C++ PATCH] PR c++/45114 - Support alias templates

2011-11-07 Thread Dodji Seketeli
> On 11/05/2011 07:36 PM, Dodji Seketeli wrote: > > +#define TYPE_DECL_NAMES_ALIAS_TEMPLATE_P(NODE) \ > > This doesn't seem to be needed anymore. Removed, thanks. > > > +dump_alias_template_specialization (tree t, int flags) > > +{ > > + gcc_assert (alias_template_speci

Re: [C++ PATCH] PR c++/45114 - Support alias templates

2011-11-05 Thread Jason Merrill
On 11/05/2011 07:36 PM, Dodji Seketeli wrote: +#define TYPE_DECL_NAMES_ALIAS_TEMPLATE_P(NODE) \ This doesn't seem to be needed anymore. +dump_alias_template_specialization (tree t, int flags) +{ + gcc_assert (alias_template_specialization_p (t)); + + if (CLASS_TYPE_P

Re: [C++ PATCH] PR c++/45114 - Support alias templates

2011-11-05 Thread Dodji Seketeli
Jason Merrill writes: > On 10/27/2011 03:10 PM, Dodji Seketeli wrote: > > +/* Setter for the TYPE_DECL_ALIAS_P proprety above. */ > > +#define SET_TYPE_DECL_ALIAS_P(NODE, VAL) \ > > + (DECL_LANG_FLAG_6 (TYPE_DECL_CHECK (NODE)) = (VAL)) > > This seems unnecessary. Removed. > >

Re: [C++ PATCH] PR c++/45114 - Support alias templates

2011-10-27 Thread Jason Merrill
On 10/27/2011 03:10 PM, Dodji Seketeli wrote: +/* Setter for the TYPE_DECL_ALIAS_P proprety above. */ +#define SET_TYPE_DECL_ALIAS_P(NODE, VAL) \ + (DECL_LANG_FLAG_6 (TYPE_DECL_CHECK (NODE)) = (VAL)) This seems unnecessary. +#define TYPE_DECL_NAMES_ALIAS_TEMPLATE_P(NODE)

Re: [C++ PATCH] PR c++/45114 - Support alias templates

2011-10-27 Thread Gabriel Dos Reis
On Thu, Oct 27, 2011 at 2:10 PM, Dodji Seketeli wrote: > Hello, > > This patch adds support for the alias-declaration feature of the c++11 > specification, introduced by the paper N2258[1] and voted into in the > standard.  It's a derivative work of a preliminary patch attached by > Jason Merrill