PR c++/52440
* g++.dg/cpp0x/pr52440.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199899
138bc75d-0d04-0410-961f-
82ee72b054a4
+2013-06-10 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/52440
+ * g++.dg/cpp0x/pr52440.C: New.
+
2013-06-10 Jakub Jelinek <jakub@redhat.com>
PR target/56564
--- /dev/null
+// PR c++/52440
+// { dg-do compile { target c++11 } }
+
+template<bool>
+struct V
+{
+ typedef void type;
+};
+
+template<typename T>
+struct X
+{
+ template<typename>
+ static constexpr bool always_true()
+ {
+ return true;
+ }
+
+ template<typename U,
+ typename = typename V<always_true<U>()>::type>
+ X(U &&) {}
+};
+
+int main()
+{
+ X<int> x(42);
+}