Skip to content

Type transformations of qualified function types [GH #335] - #337

Merged
daveedvdv-nvidia merged 1 commit into
mainfrom
fix/335
Oct 21, 2026
Merged

daveedvdv-nvidia merged 1 commit into
mainfrom
fix/335

Conversation

@nv-cmeerw

Copy link
Copy Markdown
Contributor

Previously, the __add_lvalue_reference, __add_rvalue_reference, __add_pointer,
and __decay intrinsics produced incorrect types for function types with cv- or
ref-qualifiers. They now leave such types unchanged. For example, with
--c++11:

  using F = void() const;
  using F = __add_pointer(F);  // Previously a spurious error, now okay.

@daveedvdv-nvidia
daveedvdv-nvidia merged commit 8360528 into main Oct 21, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants