From 1f6a8fcf4f418a3e433897a6a19f8a8e899e2c96 Mon Sep 17 00:00:00 2001
From: wolf
@@ -82,6 +86,46 @@ compiler, so the problem does not exist there any more.
+
+ However, there are more problems lurking around the corner: even though we
+ have included patches so that the library can be compiled, presently not all
+ of the examples can. There is at least one problem in the compiler which we
+ could not work around (I reported this to the gcc bug tracking system as
+ c++/616 in October 2000, and it was fixed a few weeks later, but apparently
+ did not make it to Red Hat's version). The problem manifests itself in
+ situations like this:
+
+
+ Here, the compiler reports
+
+ template
+
+
+ which is clearly bogus since
+ x.cc: In function `void f () [with int dim = 1]':
+ x.cc:7: instantiated from here
+ x.cc:5: uninitialized const `rhs'
+
+ rhs
uses the default constructor of
+ the class. Unfortunately, there is no way of working around the bug short of
+ removing the constness of the variable. We did not want to do this, since
+ this changes the semantics of the programs and is promoting bad style which
+ we do not want to do in example programs. Furthermore, since gcc 2.96 is
+ being phased out at the time of this writing, there is no point in doing this
+ any more. Therefore, we advise you to remove the constness of these variables
+ if you are forced to use this compiler and want to use the example programs,
+ and want to test the example programs or use them as the basis for your own
+ project. A better way is to up- or downgrade your compiler, if this is
+ possible for your machine.
+