[Bug c++/94255] template specialization in different namespace causes crash

xerofoify at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Mar 22 04:15:09 GMT 2020


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

Nicholas Krause <xerofoify at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com,
                   |                            |xerofoify at gmail dot com

--- Comment #2 from Nicholas Krause <xerofoify at gmail dot com> ---
I've managed to track this down to what appears to me to be a issue in:
tree
push_inner_scope (tree inner)
{
  tree outer = current_scope ();
  if (!outer)
    outer = current_namespace;

  push_inner_scope_r (outer, inner);
  return outer;
}


I'm not certain if we should just check against NULL_TREE for outer or do we
need to also check against DECL_NAMESPACE as well. CCing Jason Merrill to take
a look at this with his comments.


More information about the Gcc-bugs mailing list