Topic: Defect Report: Using declaration cannot be a function declaration


Author: "Johannes Schaub (litb)" <schaub-johannes@web.de>
Date: Tue, 26 Jan 2010 16:15:37 CST
Raw View
3.4.2[basic.lookup.argdep] paragraph 2 bullet 2 of n3000 contain this
wording:

"- a block-scope function declaration that is not a using-declaration"

A function declaration however is defined in terms of a decl-specifier-seq
and declarators (7[dcl.dcl] paragraph 6 and 7), and it seems that at least
once it's taken for granted that a using declaration is never a function
declaration. Consider 7.3.3[namespace.udecl] paragraph 14 for an example
(two using declarations don't conflict, because none of them is a block- or
namespace-scope function declaration).

There are other subsections than 3.4.2 that seem to include using
declarations as being a function declaration, for instance 13[over]
paragraph 1.

--
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]