]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: ast: Fix ICE on generic args path
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 4 Apr 2023 17:52:38 +0000 (19:52 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:28:44 +0000 (18:28 +0100)
commit88c5d5555530b6dc54f5aeb3dc5735aa8153a602
tree4949808fed0ca83956f29fc8670645d044362997
parentefb24f60a818a8bec65a6204de9bb7f6866a4539
gccrs: ast: Fix ICE on generic args path

The path should be retrieved only when a generic arg has either type.

gcc/rust/ChangeLog:

* ast/rust-ast-tokenstream.cc (TokenStream::visit): Fix ICE.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/ast/rust-ast-tokenstream.cc