2005-07-21 Douglas Gregor <doug.gregor@gmail.com>
PR c++/2922
* g++.dg/lookup/two-stage5.C: New test from bug comments.
From-SVN: r102236
+2005-07-21 Douglas Gregor <doug.gregor@gmail.com>
+
+ PR c++/2922
+ * g++.dg/lookup/two-stage5.C: New test from bug comments.
+
2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/15938
--- /dev/null
+// { dg-do run }
+extern "C" void abort ();
+
+namespace N {
+template <class T> T foo (T) { return T (); }
+template <class T> T bar (T t) { return foo (t); }
+}
+
+struct S { S (int i = 0): i_ (i) { } int i_; };
+
+namespace N {
+/* template <> */ S foo (S) { return S (1); }
+}
+
+int main ()
+{
+ if (1 == N::bar (S()).i_)
+ abort ();
+}