// { dg-do compile } // Copyright (C) 2002 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 24 Dec 2002 // Source Martin Buchholz martin@xemacs.org // PR 9053. Failed to consider templates that are disambiguated by // return type. template class bar; template <> struct bar { typedef void type; }; template class qux; template <> struct qux { typedef void type; }; template typename bar::type foo (T t) { } template typename qux::type foo (T t) { } int main (int argc, char *argv[]) { foo ("foo"); foo (7); }