Talk:cpp/language/statements
From cppreference.com
';' of declaration statement is reduntant
block-declaration ;
|
(1) | ||||||||
On ISO/IEC 14882:2011 page 113, there is
Note: A declaration is a statement (6.7)
And On page 137, there is a definition of the declaration statement
A declaration statement introduces one or more new identifiers into a block;
it has the form
declaration-statement:
block-declaration
the block-declaration itself should includes the ';'.