This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32232] New: [4.1/4.2/4.3 Regression] ICE in resolve_overloaded_unification
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2007 10:33:18 -0000
- Subject: [Bug c++/32232] New: [4.1/4.2/4.3 Regression] ICE in resolve_overloaded_unification
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
// { dg-do compile }
template<typename T> struct A;
template<typename T> struct B {};
template<typename T> A<T>& operator<<(A<T>&, const B<T>&);
template<typename T>
struct A
{
A<T>& operator<<(A<T>& (*)(A<T>&));
};
template<typename T> A<T>& foo(A<T>&);
extern A<char> c;
int
main()
{
c << (1, foo);
}
ICEs in resolve_overloaded_unification with 3.4, 4.1.2 and the trunk, compiles
fine with 3.2.3.
--
Summary: [4.1/4.2/4.3 Regression] ICE in
resolve_overloaded_unification
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32232