[Bug c++/27527] invalid types produced out of argument deduction (SFINAE bug)

sebor at roguewave dot com gcc-bugzilla@gcc.gnu.org
Fri May 12 16:27:00 GMT 2006



------- Comment #2 from sebor at roguewave dot com  2006-05-12 16:27 -------
EDG points out to me that both the original test case and the one from comment
#1 are ambiguous because only the declaration of the signature of the function
(and thus only the declaration of its return type and its arguments) is
required the be well-formed and not the definition. Since the declaration of
both A<int> and B<int> is well-formed in all cases the call is ambiguous.


-- 


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



More information about the Gcc-bugs mailing list