Topic: Defect Report: redundant semicolon in an example in 14.8/2
Author: "Yaroslav Mironov" <tada@mail.wplus.net>
Date: 2000/08/23 Raw View
The example in 14.8/2 [temp.fct.spec] reads:
template<class T> f(T* p)
{
static T s;
// ...
};
There is a redundant semicolon after the closing bracket, which also makes
the code ill-formed (thanks to Greg Comeau for pointing this out), because a
semicolon on its own does not form a declaration, only an empty expression
statement, and there is no context where template-function definitions and
expression statements could be mixed.
Suggestions: remove the redundant semicolon
Yaroslav Mironov
[ forwarded to c++ committee. -- sdc ]
[ 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 ]