diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-03-19 09:08:53 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-03-19 09:08:53 +0000 |
commit | a270a9ccdf64e944ade78cae8db651e6c94eb95e (patch) | |
tree | ffc93dae6ddd17c3341d21ad9fe0957ee33a2952 /gcc/testsuite | |
parent | 3c5c852a116a5211c11c2cb89e74ff00ceb3f09b (diff) | |
download | gcc-a270a9ccdf64e944ade78cae8db651e6c94eb95e.tar.gz |
* pt.c (check_explicit_specialization): When reverting a static
member function, also remove the `this' parameter from
last_function_parms.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18704 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/static1.C | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/static1.C b/gcc/testsuite/g++.old-deja/g++.pt/static1.C new file mode 100644 index 00000000000..67e23631600 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/static1.C @@ -0,0 +1,21 @@ +extern "C" void abort(); + +template <class T> +class A +{ + public: + static int foo(int); +}; + +template <> +int A<int>::foo(int i) +{ + return i; +} + + +int main() +{ + if (A<int>::foo(22) != 22) + abort(); +} |