Landing: 172dc0ed6327

Project / Subsystem

gcc / libstdc++

Date

2026-07-04

Author

Thomas Schwinge

Commit

172dc0ed63274f24653f830754a6d49e37bfc3fe

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
commit_hash
172dc0ed63274f24653f830754a6d49e37bfc3fe
source_type
github
headline
libstdc++: Avoid type-limits warnings in ctype_members.cc
tldr
GCC's libstdc++ avoids type-limits warnings in generic ctype implementation by using a helper function.
author
Thomas Schwinge
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • libstdc++
  • compiler warning
  • wchar_t
discussion_id_link
bugzilla_pr
date
2026-07-04T00:00:00.000Z

GCC’s libstdc++ now avoids compiler warnings related to type limits in ctype_members.cc. The issue arose from comparisons involving wchar_t that were always true due to its limited range. A new helper function use_table is introduced, which is then used in the do_narrow methods for ctype<wchar_t>, resolving the compiler errors and ensuring correct behavior across platforms.