diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/lookup/scoped5.C')
-rw-r--r-- | gcc/testsuite/g++.dg/lookup/scoped5.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/lookup/scoped5.C b/gcc/testsuite/g++.dg/lookup/scoped5.C new file mode 100644 index 000000000..a4aa7298f --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/scoped5.C @@ -0,0 +1,19 @@ +// { dg-do compile } + +// Origin: pepeaty@yahoo.com + +// PR c++/10230: ICE while determining if refered non-static member +// is from a base type of the current class. + +class A { +public: + class B { + public: + int a; + }; +}; + +class C { +public: + void f(void) { sizeof(A::B::a); } +}; |