This commit is contained in:
chrchr-github 2022-08-26 11:36:47 +02:00 committed by GitHub
parent 917496a844
commit b815153b0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -665,6 +665,12 @@ private:
" : public fn_traits<void, decltype(&T::operator())> {};\n"
"}");
ASSERT_EQUALS("", errout.str());
// #10594
checkDuplInheritedMembers("template<int i> struct A { bool a = true; };\n"
"struct B { bool a; };\n"
"template<> struct A<1> : B {};\n");
ASSERT_EQUALS("", errout.str());
}
#define checkCopyConstructor(code) checkCopyConstructor_(code, __FILE__, __LINE__)