Landing: 5dc5d050b35b

Project / Subsystem

gcc / c++

Date

2026-08-20

Author

Jason Merrill

Commit

5dc5d050b35b35233b92217c8ebf9dd3abf0bf50

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
5dc5d050b35b35233b92217c8ebf9dd3abf0bf50
source_type
github
headline
c++: improve SFINAE in lookup_destructor
tldr
Passes the 'complain' flag to lookup_member in lookup_destructor.
author
Jason Merrill
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • compiler
  • • SFINAE
  • • diagnostics
discussion_id_link
—
bugzilla_pr
—
date
2026-08-20T00:00:00.000Z

In the C++ frontend, the lookup_destructor function now correctly passes the complain flag down to the lookup_member function. While this change does not fix any existing issues, it improves the handling of SFINAE (Substitution Failure Is Not An Error) diagnostics by ensuring that error reporting is consistently propagated during member lookups.