------- Comment #2 from gcc at portuosus dot com  2009-09-02 06:15 -------
This works in 4.4.1 and 3.4.6 and 4.1.2:

//redux2.cc                                                                   
#include <string>
#include <vector>

struct C
{
  template<typename Element, typename Allocator, template<typename E, typename
A> class Container >
  void member_template(Container<Element, Allocator> &container)
  {}
};

int main(int,char**)
{
  std::vector<std::string> entries;
  C().member_template(entries);
}
// end redux2.cc

In the actual code from which this was reduced, the redux2.cc version does not
work with 4.4.1 (host:=x86_64, target:=x86_64). (no matching function for call
‘C::member_template...) 

In the actual code from which this was reduced, the redux2.cc version does not
work with 3.4.6 (host:=x86_64, target=mips). (no matching function for call
‘C::member_template...)

In the actual code from which this was reduced, the redux.cc version *does*
work with 3.4.6 (host:=x86_64, target=mips).

I'm still looking into what is causing this.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41223

Reply via email to