The word "first" in [basic.scope.pdecl]/7 doesn't apply to the first bullet point (7.1) in C++14

61 views
Skip to first unread message

Belloc

unread,
Jun 19, 2015, 9:26:39 AM6/19/15
to std-dis...@isocpp.org
[basic.scope.pdecl]/7

The point of declaration of a class first declared in an elaborated-type-specifier is as follows:

  • (7.1)  for a declaration of the form

    class-key attribute-specifier-seqopt identifier ;

    the identifier is declared to be a class-name in the scope that contains the declaration, ...
According to [basic.lookup.elab]/2 no lookup is done by the compiler in this case (class-key attribute-specifier-seqopt identifier ;). How will the compiler know that the class declared in such an elaborated-type-specifier is the first in its TU?
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages