From 8997831237560874245
X-Google-Thread: f78e5,29281ac233e70edd,start
X-Google-NewGroupId: yes
X-Google-Attributes: gid7894ca11fe,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news2.google.com!news2.google.com!news.glorb.com!news.alt.net
From: Ricardo Costa<ricardoglc@gmail.com>
Newsgroups: comp.std.c++
Subject: Defect Report: Wording in 8.2-1 might be unclear (N3290)
Date: Wed, 27 Apr 2011 10:53:18 CST
Organization: http://groups.google.com
Lines: 31
Sender: std-cpp-request@vandevoorde.com
Approved: stephen.clamage@oracle.com
Message-ID: <e8d22920-5bff-486d-a1e2-5c6dbc4018c2@j26g2000yqa.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
To: undisclosed-recipients:;
Return-Path: <cppmods@mcgurn.dreamhost.com>
X-Original-Date: Tue, 26 Apr 2011 14:21:15 -0700 (PDT)
X-Submission-Address: std-c++-submit@vandevoorde.com
Xref: g2news2.google.com comp.std.c++:3276


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                      ]



