aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-09-19 09:28:05 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-09-19 09:28:05 +0000
commit3501ba248a891d33ba20a99f285913ce7f9bc68c (patch)
tree9529319ca28ea3ba03998f07ac9ccde0d14af37c /gcc
parentb90e0e3cdb60af9429f1acd99d9e30a65c03752d (diff)
downloadgcc-3501ba248a891d33ba20a99f285913ce7f9bc68c.zip
gcc-3501ba248a891d33ba20a99f285913ce7f9bc68c.tar.gz
gcc-3501ba248a891d33ba20a99f285913ce7f9bc68c.tar.bz2
re PR libstdc++/12232 (Incorrect handling of openmode argument in filebuf::seekoff and seekpos)
cp: PR c++/12232 * pt.c (instantiate_class_template): Increment processing_template_decl around the tsubst of a template member function. testsuite: PR c++/12232 * g++.dg/template/memtmpl2.C: New test. From-SVN: r71563
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/template/memtmpl2.C15
3 files changed, 27 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 6b0fa8a..a94120f 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,10 @@
+2003-09-19 Nathan Sidwell <nathan@codesourcery.com>
+
+ PR c++/12232
+ * pt.c (instantiate_class_template): Increment
+ processing_template_decl around the tsubst of a template member
+ function.
+
2003-09-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
* decl.c (cxx_scope_descriptor): Fix thinko.
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 878bcda..ce668dd 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-19 Nathan Sidwell <nathan@codesourcery.com>
+
+ PR c++/12232
+ * g++.dg/template/memtmpl2.C: New test.
+
2003-09-18 Mark Mitchell <mark@codesourcery.com>
PR target/11184
diff --git a/gcc/testsuite/g++.dg/template/memtmpl2.C b/gcc/testsuite/g++.dg/template/memtmpl2.C
new file mode 100644
index 0000000..15ede59
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/memtmpl2.C
@@ -0,0 +1,15 @@
+// { dg-do compile }
+
+// Copyright (C) 2003 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 18 Sep 2003 <nathan@codesourcery.com>
+
+// PR c++/12232. ICE
+
+template <unsigned D> class TPL;
+
+template <typename T> struct X {
+ template <template <typename> class V>
+ V<TPL<V<int>::d> > operator () ();
+};
+
+void Foo (X<int> x) {}