We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 917496a commit b815153Copy full SHA for b815153
1 file changed
test/testclass.cpp
@@ -665,6 +665,12 @@ class TestClass : public TestFixture {
665
" : public fn_traits<void, decltype(&T::operator())> {};\n"
666
"}");
667
ASSERT_EQUALS("", errout.str());
668
+
669
+ // #10594
670
+ checkDuplInheritedMembers("template<int i> struct A { bool a = true; };\n"
671
+ "struct B { bool a; };\n"
672
+ "template<> struct A<1> : B {};\n");
673
+ ASSERT_EQUALS("", errout.str());
674
}
675
676
#define checkCopyConstructor(code) checkCopyConstructor_(code, __FILE__, __LINE__)
0 commit comments