OSDN Git Service

2005-02-09 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Feb 2005 01:05:31 +0000 (01:05 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Feb 2005 01:05:31 +0000 (01:05 +0000)
        PR c++/18470
        * g++.dg/template/static12.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94789 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ace4d02..210102d 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR c++/18470
+       * g++.dg/template/static12.C: New test.
+
 2005-02-09  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/19787
diff --git a/gcc/testsuite/g++.dg/template/static12.C b/gcc/testsuite/g++.dg/template/static12.C
new file mode 100644 (file)
index 0000000..73becab
--- /dev/null
@@ -0,0 +1,13 @@
+// PR c++/18470
+
+template<typename> struct A
+{
+    static const int i=1;
+};
+
+template<typename T> struct B : A<T>
+{
+    using A<T>::i;
+    char s[i];       // fails
+    char t[A<T>::i]; // compiles
+};