Skip to content

[dcl.type.decltype] Fix decltype of template splice-specialization-specifier#11

Open
abhinavagarwal07 wants to merge 1 commit into
mainfrom
fix-decltype-splice-specialization
Open

[dcl.type.decltype] Fix decltype of template splice-specialization-specifier#11
abhinavagarwal07 wants to merge 1 commit into
mainfrom
fix-decltype-splice-specialization

Conversation

@abhinavagarwal07

Copy link
Copy Markdown
Owner

The decltype bullet for splice-expressions refers to "the type ... designated by the splice-specifier of E" for all three productions. For template splice-specialization-specifier whose splice-specifier designates a variable template, that splice-specifier designates the template itself, which has no type — only its specialization does. Split the bullet so the variable-template form yields the type of the specialization S, the function-template forms denote an overload set (ill-formed for decltype), and the plain splice-specifier form is unchanged, mirroring [dcl.type.splice] and [expr.prim.id.qual].

…ecifier

The decltype bullet for splice-expressions referred to "the type ...
designated by the splice-specifier of E" for all three splice-expression
productions. For a template splice-specialization-specifier whose
splice-specifier designates a variable template, that splice-specifier
designates the template itself, which has no type; only its
specialization does. Split the bullet so the variable-template form
yields the type of the specialization S, the function-template forms
denote an overload set (ill-formed for decltype), and the plain
splice-specifier form is unchanged, mirroring [dcl.type.splice] and
[expr.prim.id.qual].
@abhinavagarwal07 abhinavagarwal07 force-pushed the fix-decltype-splice-specialization branch from e8a829d to e5715b4 Compare June 17, 2026 16:15
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.

1 participant