------- 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