A decl-specifier-seq doesn't introduce names into a declaration.

34 views
Skip to the first unread message

Belloc

unread,
13 Apr 2018, 1:25:36 pm13/4/18
to ISO C++ Standard - Discussion

A name introduced by a declaration in a condition (either introduced by the decl-specifier-seq or the declarator
of the condition) is in scope from its point of declaration until the end of the substatements controlled by the
condition.

Richard Smith

unread,
13 Apr 2018, 5:42:41 pm13/4/18
to std-dis...@isocpp.org
if (struct S *p = 0)

introduces the name S from the decl-specifier-seq.

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-discussio...@isocpp.org.
To post to this group, send email to std-dis...@isocpp.org.
Visit this group at https://groups.google.com/a/isocpp.org/group/std-discussion/.

Belloc

unread,
13 Apr 2018, 7:34:25 pm13/4/18
to ISO C++ Standard - Discussion
On Friday, April 13, 2018 at 6:42:41 PM UTC-3, Richard Smith wrote:

if (struct S *p = 0)

introduces the name S from the decl-specifier-seq.



A fantastic memory of yours. Thanks a lot. 
Reply all
Reply to author
Forward
0 new messages