diff options
-rw-r--r-- | gcc/testsuite/g++.dg/template/lookup18.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/lookup18.C b/gcc/testsuite/g++.dg/template/lookup18.C new file mode 100644 index 0000000..38f7347 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/lookup18.C @@ -0,0 +1,17 @@ +// PR c++/93614 + +template<class T> +class foo{}; + +template<class T> +class template_class_with_struct +{ + void my_method() { + if(this->b.foo < 1); + }; + + struct bar + { + long foo; + } b; +}; |