mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 20:01:31 -05:00
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.
8 lines
245 B
C
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" }
|