Landing: b183634956ae

Project / Subsystem

gcc / c++

Date

2026-04-20

Author

Andrew Pinski

Commit

b183634956ae52ceafca5c32f70bb60ebbf7e34c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
commit_hash
b183634956ae52ceafca5c32f70bb60ebbf7e34c
source_type
github
headline
C++: Correctly Print EXACT_DIV_EXPR as '/'
tldr
GCC now prints EXACT_DIV_EXPR as `/` instead of `unknown operator`, aligning the output with FLOOR_DIV_EXPR.
author
Andrew Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • compiler
  • printing
  • EXACT_DIV_EXPR
discussion_id_link
bugzilla_pr
date
2026-04-20T00:00:00.000Z

GCC now prints EXACT_DIV_EXPR as / instead of unknown operator, which is consistent with how FLOOR_DIV_EXPR is printed. EXACT_DIV_EXPR represents exact integer division, and this change improves the readability of compiler diagnostics and error messages, especially when dealing with constant expressions. The fix addresses a regression introduced by a previous change.