Topic: Defect Report: Compound declaration contains a semicolon.
Author: Thomas Bergin <tbergin@mad.scientist.com>
Date: 02 Dec 00 05:09:04 GMT Raw View
[Moderator's note: this defect report has been
forwarded to the C++ committee. -moderator(fjh).]
The example in Section 8.3.5 [dcl.fct] paragraph 9 (page 137) of the standard states.
int i,
*pi,
f(),
*fpi(int),
(*pif)(const char*, const char*);
(*fpif(int))(int);
a function fpif taking an integer argument and returning a pointer to a
function that takes an integer argument and returns an integer.
I believe that the first semicolon should be a comma. As written, the sixth
line (*fpif(int))(int); does not appear to specify a return type.
Thomas Bergin
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]