Commit 73b7f10a by Marek Polacek Committed by Marek Polacek

re PR c++/89873 (internal compiler error: unexpected expression of kind implicit_conv_expr)

	PR c++/89873
	* g++.dg/cpp1y/noexcept1.C: New test.

From-SVN: r272507
parent 877ef628
2019-06-20 Marek Polacek <polacek@redhat.com>
PR c++/89873
* g++.dg/cpp1y/noexcept1.C: New test.
2019-06-20 Thomas Koenig <tkoenig@gcc.gnu.org> 2019-06-20 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/90937 PR fortran/90937
......
// PR c++/89873
// { dg-do compile { target c++14 } }
template <int> bool b;
template <typename>
struct C {
template <typename> friend int foo() noexcept(b<1>); // { dg-error "not usable in a constant expression|different exception specifier" }
};
template <typename> int foo() noexcept(b<1>);
auto a = C<int>();
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