Message ID | 20211204203048.366355-1-polacek@redhat.com |
---|---|
State | New |
Headers | show |
Series | [pushed] c++: Add fixed test [PR93614] | expand |
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 T> +class foo{}; + +template<class T> +class template_class_with_struct +{ + void my_method() { + if(this->b.foo < 1); + }; + + struct bar + { + long foo; + } b; +};