OSDN Git Service

/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Sep 2009 23:31:47 +0000 (23:31 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Sep 2009 23:31:47 +0000 (23:31 +0000)
2009-09-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/28293
* decl.c (grokfield): Check for explicit template argument lists.

/testsuite
2009-09-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/28293
* g++.dg/template/crash91.C: New.

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

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

index 98a2270..5746f24 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/28293
+       * decl.c (grokfield): Check for explicit template argument lists.
+
 2009-09-09  Jack Howarth  <howarth@bromo.med.uc.edu>
 
        PR bootstrap/41180
index 9d6b823..8e2266b 100644 (file)
@@ -1,4 +1,9 @@
-2009-09-09 Uros Bizjak <ubizjak@gmail.com>
+2009-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/28293
+       * g++.dg/template/crash91.C: New.
+
+2009-09-09  Uros Bizjak <ubizjak@gmail.com>
 
        PR rtl-optimization/39779
        * gcc.dg/pr39979.c: New test.
diff --git a/gcc/testsuite/g++.dg/template/crash91.C b/gcc/testsuite/g++.dg/template/crash91.C
new file mode 100644 (file)
index 0000000..39575cd
--- /dev/null
@@ -0,0 +1,8 @@
+// PR c++/28293
+
+template<int> void foo();
+
+struct A
+{
+  typedef void foo<0>(); // { dg-error "explicit template argument list not allowed" } 
+};