gcc/testsuite/g++.dg/cpp0x/alias-decl-30.C
raw| 1 | // Origin PR c++/55311 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | template <const char *const C, typename T> |
| 5 | struct A |
| 6 | {}; |
| 7 | |
| 8 | struct B {}; |
| 9 | |
| 10 | extern constexpr char HELLO_WORLD[] = "hello world"; |
| 11 | |
| 12 | A<HELLO_WORLD, B> g; // <-- This works fine |
| 13 | |
| 14 | template <typename T> |
| 15 | using PartiallySpecialized = A<HELLO_WORLD, T>; // <-- This fails |