diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/alias-decl-30.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/alias-decl-30.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/alias-decl-30.C b/gcc/testsuite/g++.dg/cpp0x/alias-decl-30.C new file mode 100644 index 0000000000..7ad5e6d83d --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/alias-decl-30.C @@ -0,0 +1,15 @@ +// Origin PR c++/55311 +// { dg-do compile { target c++11 } } + +template <const char *const C, typename T> +struct A +{}; + +struct B {}; + +extern constexpr char HELLO_WORLD[] = "hello world"; + +A<HELLO_WORLD, B> g; // <-- This works fine + +template <typename T> +using PartiallySpecialized = A<HELLO_WORLD, T>; // <-- This fails |