This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Ready status.

4535. Disallow user specialization of <simd> templates

Section: 29.10.1 [simd.general] Status: Ready Submitter: Tim Song Opened: 2026-03-05 Last modified: 2026-03-06

Priority: Not Prioritized

View all issues with Ready status.

Discussion:

Addresses US 176-280.

It does not appear that any of the class templates in <simd> can be profitably specialized by the user – or that the non-member functions can be used with such user specializations.

[2026-03-06 LWG telecon; move to Ready]

Proposed resolution:

This wording is relative to N5032.

  1. Add the following paragraph to the end of 29.10.1 [simd.general]:

    -?- If a program declares an explicit or partial specialization of any of the templates specified in subclause 29.10 [simd], the program is ill-formed, no diagnostic required.

  2. Strike 29.10.4 [simd.traits] p3 as redundant:

    -3- The behavior of a program that adds specializations for alignment is undefined.