You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/11/09 00:18:50 UTC

[jira] Created: (STDCXX-655) [HP aCC 3.73] error 902 on an overloaded template assignment in a template

[HP aCC 3.73] error 902 on an overloaded template assignment in a template
--------------------------------------------------------------------------

                 Key: STDCXX-655
                 URL: https://issues.apache.org/jira/browse/STDCXX-655
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
         Environment: HP aCC 3.73
            Reporter: Martin Sebor


-------- Original Message --------
Subject: error 902 on an overloaded template assignment in a template
Date: Thu, 08 Nov 2007 16:17:41 -0700
From: Martin Sebor <se...@roguewave.com>
To: acxx@cup.hp.com

Hi!

This bug seems familiar but I don't think I've reported it yet.
It comes up in our test for auto_ptr. See:
  http://issues.apache.org/jira/browse/STDCXX-616

Martin

$ cat t.cpp && aCC -V t.cpp
template <class T>
struct S {
    void operator= (S&) { }
    template <class U>
    void operator= (S<U>&) { }
};

int main ()
{
    S<void> s;
    s.operator=<void>(s);
}
aCC: HP ANSI C++ B3910B A.03.73
Error 902: "t.cpp", line 11 # Template deduction failed to find a match 
for the call to 'operator =' with signature 'void (S<void> *,S<void>)'.
        s.operator=<void>(s);
                  ^^^^^^^


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.