This was fixed by r241425, but the test added in that revision doesn't
have an alias template.  So adding this test.

Tested on x86_64-linux, applying to trunk.

2019-08-02  Marek Polacek  <pola...@redhat.com>

        PR c++/77575
        * g++.dg/cpp0x/nontype2.C: New test.

diff --git gcc/testsuite/g++.dg/cpp0x/nontype2.C 
gcc/testsuite/g++.dg/cpp0x/nontype2.C
new file mode 100644
index 00000000000..aad2ed5d147
--- /dev/null
+++ gcc/testsuite/g++.dg/cpp0x/nontype2.C
@@ -0,0 +1,7 @@
+// PR c++/77575
+// { dg-do compile { target c++11 } }
+
+template<template <class> class> struct meow {};
+template<class T> using kitty = T&;
+
+meow<kitty> u;

Reply via email to