https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89657

--- Comment #1 from Jason Cobb <jason.e.cobb at gmail dot com> ---
(In reply to Jason Cobb from comment #0)
> In the code:
> auto x = []<int = 0>(){
>     return requires() {
>         1;
>     };
> }();
> 
> When compiling with trunk as of 2019-03-10, GCC fails with an internal
> compiler error:
> <source>: In instantiation of '<lambda()> [with int <anonymous> = 0]':
> 
> <source>:5:3:   required from here
> 
> <source>:5:1: internal compiler error: tree check: expected tree that
> contains 'typed' structure, have 'simple_req' in copy_tree_body_r, at
> tree-inline.c:1325
> 
>     5 | }();
> 
>       | ^
> 
> Show on Compiler Explorer: https://gcc.godbolt.org/z/jwasQ9

Sorry, clarification: the contents of the requires-expression do not matter,
any requires-expression causes this issue.

Reply via email to