Movatterモバイル変換


[0]ホーム

URL:


Issue 41 - WG21 CWG Issues
Title
Clarification of lookup of names after declarator-id
Status
tc1
Section
6.5.3 [basic.lookup.unqual]
Submitter
Mike Miller

Created on1998-09-01.00:00:00 last changed277 months ago

Messages

msg203 (view)
Date: 1999-04-15.00:00:00

Proposed Resolution (04/99):Change the text in 6.5.3 [basic.lookup.unqual]paragraph 6 from:

A name used in the definition of a function [footnote: Thisrefers to unqualified names following the function declarator; such a namemay be used as a type or as a default argument name in theparameter-declaration-clause,or may be used in the function body.end footnote] that is ...
to:
A name used in the definition of a function following the function'sdeclarator-id [footnote:This refers to unqualified names that occur, for instance, in a type ordefault argument expression in theparameter-declaration-clauseor used in the function body.end footnote] that is ...
Change the text in 6.5.3 [basic.lookup.unqual] paragraph 8from:
A name used in the definition of a function that is a memberfunction (11.4.2 [class.mfct])[footnote: That is, an unqualified name following the functiondeclarator; such a name may be used as a type or as a default argumentname in theparameter-declaration-clause, or may be used in the functionbody, or, if the function is a constructor, may be used in the expressionof amem-initializer.end footnote] of classX shall be ...
to:
A name used in the definition of a member function(11.4.2 [class.mfct]) ofclassX following the function'sdeclarator-id[footnote:That is, an unqualified name that occurs, for instance, in a type or defaultargument expression in theparameter-declaration-clause, in thefunction body, or in an expression of amem-initializer in a constructordefinition.end footnote] shall be ...
msg3 (view)
Date: 2022-11-20.07:54:16

Footnotes 26 and 29 both use the phrase "following the function declarator"incorrectly: the function declarator includes the parameter list, but thefootnotes make clear that they intend what's said to apply to names insidethe parameter list. Presumably the phrase should be "following the functiondeclarator-id."

Proposed Resolution (04/99):Change the text in 6.5.3 [basic.lookup.unqual]paragraph 6 from:

A name used in the definition of a function [footnote: Thisrefers to unqualified names following the function declarator; such a namemay be used as a type or as a default argument name in theparameter-declaration-clause,or may be used in the function body.end footnote] that is ...
to:
A name used in the definition of a function following the function'sdeclarator-id [footnote:This refers to unqualified names that occur, for instance, in a type ordefault argument expression in theparameter-declaration-clauseor used in the function body.end footnote] that is ...
Change the text in 6.5.3 [basic.lookup.unqual] paragraph 8from:
A name used in the definition of a function that is a memberfunction (11.4.2 [class.mfct])[footnote: That is, an unqualified name following the functiondeclarator; such a name may be used as a type or as a default argumentname in theparameter-declaration-clause, or may be used in the functionbody, or, if the function is a constructor, may be used in the expressionof amem-initializer.end footnote] of classX shall be ...
to:
A name used in the definition of a member function(11.4.2 [class.mfct]) ofclassX following the function'sdeclarator-id[footnote:That is, an unqualified name that occurs, for instance, in a type or defaultargument expression in theparameter-declaration-clause, in thefunction body, or in an expression of amem-initializer in a constructordefinition.end footnote] shall be ...
History
DateUserActionArgs
2003-04-25 00:00:00adminsetstatus: dr -> tc1
1999-09-14 00:00:00adminsetmessages: +msg203
1999-09-14 00:00:00adminsetstatus: review -> dr
1998-09-01 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp