Title
Conflicting diagnostic requirements for template definitions
Status
nad
Section
13.8 [temp.res]
Submitter
CWG

Created on 2013-09-28.00:00:00 last changed 81 months ago

Messages

Date: 2017-02-15.00:00:00

Rationale (February, 2017):

The text in question was revised editorially and the issue is now moot.

Date: 2022-11-20.07:54:16

According to 13.8 [temp.res] paragraph 8,

No diagnostic shall be issued for a template for which a valid specialization can be generated.

One sentence later, it says,

If every valid specialization of a variadic template requires an empty template parameter pack, the template is ill-formed, no diagnostic required.

This appears to be a contradiction: in the latter case, there is postulated to exist a “valid” specialization (with an empty pack expansion), for which a diagnostic might or might not be issued. The first quoted sentence, however, forbids issuing a diagnostic for a template that has at least one valid specialization.

History
Date User Action Args
2018-02-27 00:00:00adminsetmessages: + msg6020
2018-02-27 00:00:00adminsetstatus: drafting -> nad
2014-03-03 00:00:00adminsetstatus: open -> drafting
2013-09-28 00:00:00admincreate