Files
gcc-reflection/gcc/testsuite/g++.dg/cpp1z/constexpr-lambda25.C
Jason Merrill eff9c61dfb PR c++/92531 - ICE with noexcept(lambda).
This was failing because uses_template_parms didn't recognize LAMBDA_EXPR as
a kind of expression.  Instead of trying to enumerate all the different
varieties of expression and then aborting if what's left isn't
error_mark_node, let's handle error_mark_node and then assume anything else
is an expression.

	* pt.c (uses_template_parms): Don't try to enumerate all the
	expression cases.
2020-01-17 09:25:01 -05:00

8 lines
245 B
C

// PR c++/92531
// { dg-do compile { target c++17 } }
template <typename XK>
void ky () noexcept ([]{}); // IFNDR
// Optional error: void(*)() to bool conv in converted constant expression
// { dg-prune-output "converted constant expression" }