#6692 False positive: Hidden member variable - parent class with same name in different namespace. Add regression test for FP which got fixed in 1.70 already
This commit is contained in:
parent
bdd57e6913
commit
af2ada9258
|
@ -367,6 +367,18 @@ private:
|
|||
"};");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
|
||||
// #6692
|
||||
checkDuplInheritedMembers("namespace test1 {\n"
|
||||
" struct SWibble{};\n"
|
||||
" typedef SWibble wibble;\n"
|
||||
"}\n"
|
||||
"namespace test2 {\n"
|
||||
" struct SWibble : public test1::wibble {\n"
|
||||
" int Value;\n"
|
||||
" };\n"
|
||||
"}");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
|
||||
}
|
||||
|
||||
void checkCopyConstructor(const char code[]) {
|
||||
|
|
Loading…
Reference in New Issue