From: Marek Polacek Date: Sat, 8 Jun 2019 00:30:51 +0000 (+0000) Subject: re PR c++/77967 (ICE in cp_parser_type_name, at cp/parser.c:16419 (trying to add... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5521a7185005b92d58ad5eff5a0df754b627c4d2;p=gcc.git re PR c++/77967 (ICE in cp_parser_type_name, at cp/parser.c:16419 (trying to add a method to a template alias)) PR c++/77967 * g++.dg/cpp0x/alias-decl-68.C: New test. From-SVN: r272070 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0ea04650174..b7812e9416e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2019-06-07 Marek Polacek + PR c++/77967 + * g++.dg/cpp0x/alias-decl-68.C: New test. + PR c++/77771 * g++.dg/cpp0x/constexpr-77771.C: New test. diff --git a/gcc/testsuite/g++.dg/cpp0x/alias-decl-68.C b/gcc/testsuite/g++.dg/cpp0x/alias-decl-68.C new file mode 100644 index 00000000000..2250ef081d9 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/alias-decl-68.C @@ -0,0 +1,10 @@ +// PR c++/77967 +// { dg-do compile { target c++11 } } + +template +using bar = const T&; + +template +bar::bar(const T& cr) // { dg-error "" } +{ +}