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]

c++/331: Re: curried template arg bug


The following may be a solution to this problem.  I've tested it on the
code included in my post in the gcc-bugs May01 archive and in my post
in the gcc-bugsMay31 archive.

The solution involves the lookup_template_class function defined in
pt.c.
The problem is that the argument  to push_decl_namespace is not a
NAMESPACE_DECL.
The solution involves testing for this condition, and if false, to
execute:

  template=lookup_field(context,d1,0,0);

instead.



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