PR c++/47511
* semantics.c (potential_constant_expression_1): Handle TEMPLATE_DECL.
From-SVN: r170005
+2011-02-09 Jason Merrill <jason@redhat.com>
+
+ PR c++/47511
+ * semantics.c (potential_constant_expression_1): Handle TEMPLATE_DECL.
+
2011-02-03 Dodji Seketeli <dodji@redhat.com>
PR c++/47398
{
case FUNCTION_DECL:
case BASELINK:
+ case TEMPLATE_DECL:
case OVERLOAD:
case TEMPLATE_ID_EXPR:
case LABEL_DECL:
+2011-02-09 Jason Merrill <jason@redhat.com>
+
+ * g++.dg/cpp0x/regress: New directory.
+ * g++.dg/cpp0x/constexpr-regress1.C: Move to regress/regress1.C.
+ * g++.dg/cpp0x/constexpr-regress2.C: Move to regress/regress2.C.
+ * g++.dg/cpp0x/regress/regress3.C: New.
+
2011-02-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47677
--- /dev/null
+This directory contains tests that were passing in C++98 mode but failing
+in C++0x mode; it should be replaced by an improvement to the test harness
+to run all tests in both modes.
--- /dev/null
+// PR c++/47511
+// { dg-options -std=c++0x }
+
+namespace N {
+ template <typename T> bool g( T ) {
+ return true;
+ }
+ struct A { };
+}
+template <class T> void f(const T&) {
+ N::A x;
+ g(x) ;
+}