]> gcc.gnu.org Git - gcc.git/commitdiff
re PR c++/77575 (Bogus error when alias template yielding a reference type used as...
authorMarek Polacek <polacek@redhat.com>
Fri, 2 Aug 2019 17:26:02 +0000 (17:26 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 2 Aug 2019 17:26:02 +0000 (17:26 +0000)
PR c++/77575
* g++.dg/cpp0x/nontype2.C: New test.

From-SVN: r274024

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nontype2.C [new file with mode: 0644]

index 5d04531f6996d5b7317868158f48135fa4476b12..3ba2518d8f2821e60aafaef62278da6a9fc9e820 100644 (file)
@@ -1,3 +1,8 @@
+2019-08-02  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/77575
+       * g++.dg/cpp0x/nontype2.C: New test.
+
 2019-08-02  Steve Ellcey  <sellcey@marvell.com>
 
        * gcc.target/aarch64/simd_pcs_attribute.c: New test.
diff --git a/gcc/testsuite/g++.dg/cpp0x/nontype2.C b/gcc/testsuite/g++.dg/cpp0x/nontype2.C
new file mode 100644 (file)
index 0000000..aad2ed5
--- /dev/null
@@ -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;
This page took 0.079492 seconds and 5 git commands to generate.