Landing: 7f4cc8140e3e

Project / Subsystem

gcc / libstdc++

Date

2026-04-27

Author

Jakub Jelinek

Commit

7f4cc8140e3eae85e77c755fc14991456649af7e

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
commit_hash
7f4cc8140e3eae85e77c755fc14991456649af7e
source_type
github
headline
Libstdc++: Fixes std::is_scalar for std::meta::info.
tldr
`std::is_scalar` now correctly identifies `std::meta::info` as a scalar type, as required by the C++ standard.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • libstdc++
  • type_traits
  • reflection
  • c++
  • std::is_scalar
discussion_id_link
bugzilla_pr
date
2026-04-27T00:00:00.000Z

std::is_scalar was updated to correctly handle std::meta::info as a scalar type when reflection is enabled (__cpp_impl_reflection >= 202506L). The standard dictates that std::meta::info and its cv-qualified versions are scalar types. This patch adds a check for is_reflection in the implementation of std::is_scalar to align with the standard. A new test was added to verify the fix.