Title
User specializations of type traits should be ill-formed
Status
nad
Section
[meta.type.synop]
Submitter
United States

Created on 2017-02-03.00:00:00 last changed 82 months ago

Messages

Date: 2017-07-15.23:15:19

Proposed resolution:

This wording is relative to N4618.

  1. Modify [meta.type.synop] as indicated:

    -1- The behavior of a program that adds specializations for any of the templates defined in this subclause is undefined unless otherwise specifiedUnless otherwise specified, a program that adds specializations for any of the templates defined in this subclause is ill-formed; no diagnostic required.

Date: 2017-07-16.20:45:12

[ 2017-07 Toronto Thurs Issue Prioritization ]

NAD; what the standard says is that this is "undefined", not "unspecified".

Date: 2017-02-04.05:44:34

Addresses US 10

A user specialization of any type trait should produce an ill-formed program, not merely one whose behavior is unspecified. See also the related comment re [execpol.type].

Proposed change:

Reword the paragraph as follows:

Unless otherwise specified, a program that adds specializations for any of the templates defined in this subclause is ill-formed; no diagnostic required.

See also 2909

History
Date User Action Args
2017-07-15 23:15:19adminsetmessages: + msg9386
2017-07-15 23:15:19adminsetstatus: new -> nad
2017-02-03 20:29:35adminsetmessages: + msg8859
2017-02-03 00:00:00admincreate