This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Segfault Question
- From: nick <xerofoify at gmail dot com>
- To: GCC Development <gcc at gcc dot gnu dot org>
- Date: Fri, 14 Dec 2018 10:55:25 -0500
- Subject: Segfault Question
Greetings All,
I was attempting to fix this bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88395#add_comment
and managed to track it down to expand_concept in constraint.cc.
Seems that we are hitting this case in tsubst_expr for the NULL_TREE:
if (t == NULL_TREE || t == error_mark_node)
return t
and we only check result for error_mark_node. Is error_mark_node
equal to a NULL_TREE or is it something else? If not than it seems
that we should change our check to:
if (result == error_mark_node || result == NULL_TREE)
and it seems that this is also not checked it the other callers so it
should be fixed.
Let me known if I am missing something,
Nick