[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Changes to GCC in development



Michael Schwendt wrote:

On Mon, 13 Jun 2005 07:42:36 -0500, Quentin Spencer wrote:



The package cln was built on development on May 28. It still builds on FC4, but now fails on development. I'm getting errors that begin with something like this:

../include/cln/string.h:30: error: ISO C++ forbids declaration of 'cl_string' with no type
../include/cln/string.h:30: error: 'cl_string' is neither function nor member function; cannot be declared friend
../include/cln/string.h:30: error: expected ';' before 'operator'


It appears gcc-4.0.0-11 was released on June 6. Does anyone know whether this release is now enforcing some rules that were not enforced before? Can strict checking be turned off with compiler flags? I don't know C++ well enough to understand exactly what's going wrong here.



Yes, since gcc-c++-4.0.0-9 (FC5 devel) the checking of missing forward declarations is stricter. Earlier, apparently, a friend declaration implied a forward declaration.

--- include/cln/string.h~       2004-06-23 23:04:49.000000000 +0200
+++ include/cln/string.h        2005-06-13 15:55:44.000000000 +0200
@@ -10,6 +10,8 @@

namespace cln {

+class cl_string;
+
// General, reference counted and garbage collected strings.
struct cl_heap_string : public cl_heap {
private:




Thanks. That fixed it.

-Quentin


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]