diff options
author | Marek Polacek <polacek@redhat.com> | 2019-06-08 00:30:51 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2019-06-08 00:30:51 +0000 |
commit | 5521a7185005b92d58ad5eff5a0df754b627c4d2 (patch) | |
tree | 7208c78432494180cf96fdeb05105def69fc1d28 /gcc | |
parent | da643428a31707ab24ef81b782b07650deb321cb (diff) | |
download | gcc-5521a7185005b92d58ad5eff5a0df754b627c4d2.zip gcc-5521a7185005b92d58ad5eff5a0df754b627c4d2.tar.gz gcc-5521a7185005b92d58ad5eff5a0df754b627c4d2.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/alias-decl-68.C | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0ea0465..b7812e9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2019-06-07 Marek Polacek <polacek@redhat.com> + 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 0000000..2250ef0 --- /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<typename T> +using bar = const T&; + +template<typename T> +bar<T>::bar(const T& cr) // { dg-error "" } +{ +} |