diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/static27.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/static27.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/static27.C b/gcc/testsuite/g++.dg/template/static27.C new file mode 100644 index 000000000..0b63967e3 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/static27.C @@ -0,0 +1,13 @@ +// PR c++/28235 + +template<typename> struct A +{ + static const bool i = true; + template<bool = i> struct B {}; + B<> b; +}; + +void f() { + A<int> a1, a2; + a1.b = a2.b; +} |