Landing: 0ffbcec62de9

Project / Subsystem

gcc / c++

Date

2026-09-23

Author

Jakub Jelinek

Commit

0ffbcec62de9419812ef0017d74ce20572586c6c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
0ffbcec62de9419812ef0017d74ce20572586c6c
source_type
github
headline
Improve null pointer-to-data-member constant printing.
tldr
Compiler diagnostics now show a user-friendly representation for null pointer-to-member constants.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • compiler
  • • diagnostics
discussion_id_link
—
bugzilla_pr
—
date
2026-09-23T00:00:00.000Z

The C++ compiler’s error reporting for null pointer-to-data-member constants has been improved. Previously, these were displayed as ‘-1’, which was confusing. The change modifies the dump_expr function to provide a more understandable output, aligning with how non-null pointer-to-member constants are displayed.