diff --git a/gcc/testsuite/g++.dg/template/lookup18.C b/gcc/testsuite/g++.dg/template/lookup18.C new file mode 100644 index 00000000000..38f7347ef51 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/lookup18.C @@ -0,0 +1,17 @@ +// PR c++/93614 + +template +class foo{}; + +template +class template_class_with_struct +{ + void my_method() { + if(this->b.foo < 1); + }; + + struct bar + { + long foo; + } b; +};