This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C++ PATCH to add test for c++/77575


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  <polacek@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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]