cplusplus / CWG

Core Working Group
23 stars 7 forks source link

CWG2858 [expr.prim.id.qual] pack-index-specifiers in declarative nested-name-specifiers #499

Open sdkrystian opened 5 months ago

sdkrystian commented 5 months ago

Full name of submitter: Krystian Stasiowski

Reference (section label): [expr.prim.id.qual]

Link to reflector thread (if any): N/A

Issue description:

According to [expr.prim.id.qual] p2 sentence 2:

A declarative nested-name-specifier shall not have a decltype-specifier.

This does not prohibit declarative nested-name-specifiers that begin with the other form of computed-type-specifier: a pack-index-specifier.

Suggested resolution:

Change [expr.prim.id.qual] p2 sentence 2 as follows:

A declarative nested-name-specifier shall not have a ~decltype-specifier~ computed-type-specifier.

jensmaurer commented 4 months ago

CWG2858