Landing: 694d048d8745

Project / Subsystem

gcc / c++/reflection

Date

2026-05-07

Author

Marek Polacek

Commit

694d048d87457e7728b9b5484a9b97cb0e617e40

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++/reflection
patch_id
commit_hash
694d048d87457e7728b9b5484a9b97cb0e617e40
source_type
github
headline
c++/reflection: Fix ICE with bases_of.
tldr
The compiler no longer crashes when using bases_of on a TREE_BINFO in reflection.
author
Marek Polacek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • reflection
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-05-07T00:00:00.000Z

The compiler was crashing in strip_typedefs_expr when recursing on a REFLECT_EXPR with TREE_BINFO as its operand. The fix prevents the recursion for REFLECT_EXPRs entirely, resolving the ICE (Internal Compiler Error).