c++: Add fixed test [PR93614]

This was fixed by r11-86.

	PR c++/93614

gcc/testsuite/ChangeLog:

	* g++.dg/template/lookup18.C: New test.
This commit is contained in:
Marek Polacek 2021-12-04 15:29:18 -05:00
parent 689407ef91
commit 066b3258bb

View file

@ -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;
};