2013-05-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/57092
* semantics.c (finish_decltype_type): Handle instantiated template
non-type arguments.
/testsuite
2013-05-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/57092
* g++.dg/cpp0x/decltype53.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198487
138bc75d-0d04-0410-961f-
82ee72b054a4
+2013-05-01 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/57092
+ * semantics.c (finish_decltype_type): Handle instantiated template
+ non-type arguments.
+
2013-04-28 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/56450
break;
default:
- gcc_unreachable ();
- return error_mark_node;
+ /* Handle instantiated template non-type arguments. */
+ type = TREE_TYPE (expr);
+ break;
}
}
else
+2013-05-01 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/57092
+ * g++.dg/cpp0x/decltype53.C: New.
+
2013-04-30 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/57071
--- /dev/null
+// PR c++/57092
+// { dg-do compile { target c++11 } }
+
+template <void (*F)(int)>
+class B {
+ decltype(F) v;
+};
+
+void foo(int) {}
+
+B<foo> o;