Jakub Jelinek <jakub at gcc dot> changed:

           What    |Removed                     |Added
                 CC|                            |jakub at gcc dot

--- Comment #2 from Jakub Jelinek <jakub at gcc dot> ---
clang++ accepts this.
In tsubst_function_decl we set DECL_CONTEXT to error_mark_node as that is what
12520     if (member && !closure)
12521       ctx = tsubst_aggr_type (ctx, args,
12522                               complain, t, /*entering_scope=*/1);
returns (complain is tf_none), returning error_mark_node here if ctx is
error_mark_node doesn't help, it ICEs later on elsewhere.

Reply via email to