* g++.dg/template/const5.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174356
138bc75d-0d04-0410-961f-
82ee72b054a4
2011-05-27 Jason Merrill <jason@redhat.com>
+ PR c++/49176
+ * g++.dg/template/const5.C: New.
+
* g++.dg/cpp0x/enum18.C: New.
* g++.dg/cpp0x/lambda/lambda-nested4.C: New.
--- /dev/null
+// PR c++/49176
+// { dg-options -std=c++0x }
+
+struct A { static int a(); };
+
+template<int>
+struct B { static int const b; };
+
+int f() { return B<0>::b; }
+
+template<int I>
+int const B<I>::b=A::a();