Topic: Defect Report: Wording in 8.2-1 might be unclear (N3290)


Author: Ricardo Costa<ricardoglc@gmail.com>
Date: Wed, 27 Apr 2011 10:53:18 CST
Raw View
In 8.2 [dcl.ambig.res], the following is said:

"1. The ambiguity arising from the similarity between a function-style
cast and a declaration mentioned in 6.8 can also occur in the context
of a declaration. In that context, the choice is between a function
declaration with a redundant set of parentheses around a parameter
name and an object declaration with a function-style cast as the
initializer. Just as for the ambiguities mentioned in 6.8, the
resolution is to consider any construct that could possibly be a
declaration a declaration."

The ambiguity it tries to solve is between a function declaration and
an object declaration. Since both are declarations, stating that "the
resolution is to consider any construct that could possibly be a
declaration a declaration" might be unclear.

I understand it refers to the function-style cast construct versus
parameter declaration, but the text could be more explicit in this
case.

Regards,
Ricardo Costa


--
[ comp.std.c++ is moderated.  To submit articles, try posting with your ]
[ newsreader.  If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]