Title
Missing semicolons in grammar for type-requirement
Status
open
Section
7.5.8.3 [expr.prim.req.type]
Submitter
Peter Bindels

Created on 2025-08-14.00:00:00 last changed 2 weeks ago

Messages

Date: 2025-08-15.22:02:38

Suggested resolution:

Change in 7.5.8.3 [expr.prim.req.type] paragraph 1 as follows:

  type-requirement:
    typename nested-name-specifieropt type-name ;
    typename splice-specifier ;
    typename splice-specialization-specifier ;
Date: 2025-08-14.00:00:00

(From submission #751.)

These lines in the example in 7.5.8.3 [expr.prim.req.type] paragraph 1 are not covered by the grammar:

  typename [:T::r1:];        // fails if T::r1 is not a reflection of a type
  typename [:T::r2:]<int>;   // fails if T::r2 is not a reflection of a template Z for which Z<int> is a type
History
Date User Action Args
2025-08-15 22:02:38adminsetmessages: + msg8079
2025-08-14 00:00:00admincreate