re PR c++/54310 (Order of operations during overload resolution)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 13 May 2014 16:14:19 +0000 (16:14 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 13 May 2014 16:14:19 +0000 (16:14 +0000)
2014-05-13  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/54310
* g++.dg/template/pr54310.C: New.

From-SVN: r210385

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr54310.C [new file with mode: 0644]

index d0ac075..0ae3424 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-13  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/54310
+       * g++.dg/template/pr54310.C: New.
+
 2014-05-13  Nathan Sidwell  <nathan@codesourcery.com>
            Sandra Loosemore  <sandra@codesourcery.com>
 
diff --git a/gcc/testsuite/g++.dg/template/pr54310.C b/gcc/testsuite/g++.dg/template/pr54310.C
new file mode 100644 (file)
index 0000000..94e5f24
--- /dev/null
@@ -0,0 +1,19 @@
+// PR c++/54310
+
+template <typename T>
+struct meta
+{
+  typedef typename T::type type;
+};
+
+struct S{};
+
+template <typename T>
+typename meta<T>::type foo(T, S);
+
+int foo(int, int);      
+
+int main()
+{
+  foo(0, 0);
+}