Commit 5521a718 by Marek Polacek Committed by Marek Polacek

re PR c++/77967 (ICE in cp_parser_type_name, at cp/parser.c:16419 (trying to add…

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
parent da643428
2019-06-07 Marek Polacek <polacek@redhat.com> 2019-06-07 Marek Polacek <polacek@redhat.com>
PR c++/77967
* g++.dg/cpp0x/alias-decl-68.C: New test.
PR c++/77771 PR c++/77771
* g++.dg/cpp0x/constexpr-77771.C: New test. * g++.dg/cpp0x/constexpr-77771.C: New test.
......
// 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 "" }
{
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment