diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fe8f81e8165e..52c063326efa 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-04-17 Paolo Carlini + + PR c++/59200 + * g++.dg/cpp0x/alias-decl-42.C: New. + 2014-04-17 Pat Haugen * gcc.target/powerpc/ti_math1.c: New. @@ -14,7 +19,7 @@ gcc.dg/plugin/one_time_plugin.c, gcc.dg/plugin/selfasign.c: Adjust. 2014-04-17 Trevor Saunders - + * g++.dg/plugin/dumb_plugin.c, g++.dg/plugin/selfassign.c, gcc.dg/plugin/one_time_plugin.c, gcc.dg/plugin/selfassign.c: Adjust. diff --git a/gcc/testsuite/g++.dg/cpp0x/alias-decl-42.C b/gcc/testsuite/g++.dg/cpp0x/alias-decl-42.C new file mode 100644 index 000000000000..09a75e45a3de --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/alias-decl-42.C @@ -0,0 +1,18 @@ +// PR c++/59200 +// { dg-do compile { target c++11 } } + +struct A +{ + static constexpr bool value = true; +}; + +template +struct B +{ + template + using C = A; +}; + +template +template + const bool B::C::value; // { dg-error "too many" }