Hello,
the following short C++ programm does not compile with gcc (but with intel
and windows):
/*
* Gives error when compiled with gcc (eg. 3.4.2, gcc-4.0-20050123).
* No error with intel (8.1) or windows compiler.
*/
class A1 {
public:
A1() {}
};
static const A1 a1;
class A2 {
};
static const A2 a2;
int main(int argc, char *argv[]) {
return 0;
}
# /opt/gcc-3.4.2/bin/g++ default_constructor.cpp
default_constructor.cpp:17: error: uninitialized const `a3'
Bug or feature?
Peter Seiderer
--
DSL Komplett von GMX +++ Superg�nstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl