From c6b08b3ea30e2f2e42b848128781dddcc8c9e17e Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Mon, 4 Sep 2000 10:28:41 +0000 Subject: [PATCH] * g++.old-deja/g++.pt/crash56.C: New test. From-SVN: r36135 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.old-deja/g++.pt/crash56.C | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/crash56.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bd135bd..17d0c5f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2000-09-04 Nathan Sidwell + * g++.old-deja/g++.pt/crash56.C: New test. + +2000-09-04 Nathan Sidwell + * g++.old-deja/g++.pt/koenig1.C: New test. 2000-09-04 Jakub Jelinek diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash56.C b/gcc/testsuite/g++.old-deja/g++.pt/crash56.C new file mode 100644 index 0000000..89c3422 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash56.C @@ -0,0 +1,19 @@ +// Build don't link: +// +// Copyright (C) 2000 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 1 Sep 2000 + +// bug 127. We ICE'd when given a non-template TYPE_DECL as a template name. + +template +class basic_string +{ +public: + typedef charT* iterator; + explicit basic_string (); + ~basic_string (); +}; + +void foo () { + basic_string::iterator p; // ERROR - not a template // ERROR - no type +} -- 2.7.4