From 0486d4a1b3728857abd7d8098872c1121bc6fbd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Wed, 11 Aug 1999 18:31:38 +0000 Subject: [PATCH] New test case. From-SVN: r28672 --- gcc/testsuite/g++.old-deja/g++.pt/typename23.C | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/typename23.C diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename23.C b/gcc/testsuite/g++.old-deja/g++.pt/typename23.C new file mode 100644 index 00000000000..5bdbe6fd61c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/typename23.C @@ -0,0 +1,15 @@ +// Build don't link: +template +void value_type(T){} + +template +struct B{ + typedef T value_type; +}; + +templateclass Vector{}; + +template +struct D:B{ + Vector r; // ERROR - value_type is not a type +};