From e9f9c81fda3eeb9a7de0ce2dca9f92bf08355d62 Mon Sep 17 00:00:00 2001 From: Mark Mitchell <mark@codesourcery.com> Date: Sun, 20 Jul 2003 04:52:23 +0000 Subject: [PATCH] re PR c++/11546 (Type lookup problems in out-of-line definition of a class doubly nested from a template class) PR c++/11546 * g++.dg/template/lookup1.C: New test. From-SVN: r69602 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/template/lookup1.C | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/lookup1.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8407b0d9bf24..96b04a57764c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-07-19 Mark Mitchell <mark@codesourcery.com> + + PR c++/11546 + * g++.dg/template/lookup1.C: New test. + 2003-07-19 Zack Weinberg <zack@codesourcery.com> * gcc.dg/noncompile/label-1.c: New comprehensive test case for diff --git a/gcc/testsuite/g++.dg/template/lookup1.C b/gcc/testsuite/g++.dg/template/lookup1.C new file mode 100644 index 000000000000..0df77bac1c38 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/lookup1.C @@ -0,0 +1,17 @@ +template <class T0> +class A { +public: + class B; +}; + +template <class T0> +class A<T0>::B { +public: + class C; +}; + +template <class T0> +class A<T0>::B::C { +public: + A<T0> &a; +}; -- GitLab