Skip to content

Commit b815153

Browse files
Add test for #10594 (#4397)
1 parent 917496a commit b815153

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/testclass.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,12 @@ class TestClass : public TestFixture {
665665
" : public fn_traits<void, decltype(&T::operator())> {};\n"
666666
"}");
667667
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());
668674
}
669675

670676
#define checkCopyConstructor(code) checkCopyConstructor_(code, __FILE__, __LINE__)

0 commit comments

Comments
 (0)