Package: g++-3.3 Version: 1:3.3-2 Severity: normal
I'm not sure, whether this should work according to the ISO C++ specs or not; IMHO it should work... :-) $ cat static_var.cc class bar { public: int operator()(int i) { return i; } //bar (void) {} // default constructor }; const bar b = bar (); // works always... const bar b2; // fails if there is no explicit default constructor $ g++ -c -O0 -Wall static_var.cc static_var.cc:9: uninitialized const `b2' $ if the commented out default constructor is enabled, compilation succeeds... -- System Information: Debian Release: testing/unstable Architecture: i386 Kernel: Linux lfdux.ifs.tuwien.ac.at 2.4.20-1-k7 #1 Sat Mar 22 15:17:52 EST 2003 i686 Locale: LANG=C, LC_CTYPE=C Versions of packages g++-3.3 depends on: ii gcc-3.3 1:3.3-2 The GNU C compiler ii gcc-3.3-base 1:3.3-2 The GNU Compiler Collection (base ii libc6 2.3.1-17 GNU C Library: Shared libraries an ii libstdc++5-3.3-dev 1:3.3-2 The GNU Standard C++ Library v3 (d -- no debconf information