Issue Details (XML | Word | Printable)

Key: STDCXX-655
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

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

Created: 08/Nov/07 11:18 PM   Updated: 08/Nov/07 11:19 PM
Return to search
Component/s: External
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment: HP aCC 3.73
Issue Links:
Blocker
 

Severity: Compiler Error


 Description  « Hide
-------- 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 <sebor@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);
^^^^^^^



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.