public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5794] c++: Add fixed test [PR93614]
@ 2021-12-04 20:30 Marek Polacek
0 siblings, 0 replies; only message in thread
From: Marek Polacek @ 2021-12-04 20:30 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:066b3258bb1494cf3b49b6ac26da38be01f7ad8e
commit r12-5794-g066b3258bb1494cf3b49b6ac26da38be01f7ad8e
Author: Marek Polacek <polacek@redhat.com>
Date: Sat Dec 4 15:29:18 2021 -0500
c++: Add fixed test [PR93614]
This was fixed by r11-86.
PR c++/93614
gcc/testsuite/ChangeLog:
* g++.dg/template/lookup18.C: New test.
Diff:
---
gcc/testsuite/g++.dg/template/lookup18.C | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
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;
+};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-04 20:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-04 20:30 [gcc r12-5794] c++: Add fixed test [PR93614] Marek Polacek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).