[Bug c++/40293] New: reference can be initialized by itself
At this code I was able to initialize the reference by itself, so actually it became an uninitialized reference: #include using namespace std; class t { public: t():x(x){x=0;cerr
[Bug c++/40293] reference can be initialized by itself
--- Comment #1 from pentek dot imre at gmail dot com 2009-05-29 13:00 --- The same applies to this code: #include using namespace std; int main() { int &x=x; x=0; cerr<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40293
[Bug c++/37100] New: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_pair.h:99: error 404
At /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_pair.h:99: /// <http://gcc.gnu.org/onlinedocs/libstdc++/20_util/howto.html#pairlt> the referenced doc doesn't exist. -- Summary: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++- v4/bits/stl_pair.h:99: error 404 Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pentek dot imre at gmail dot com GCC build triplet: x86_64-pc-linux-gnu GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37100
[Bug c++/36866] New: lack of warning when initializing a class member from an uninitialized variable
Hello, the attached code compiles without any warning when compiled with the command g++ -W -Wall any.cpp -c -o any.o but x gets initialised from itself, actually dereferencing x prior to initializing it. At this point it is trivial that x wasn't initialised. Using built-in specs. Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-java-awt=gtk --enable-languages=c,c++,java,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.1.2 (Gentoo 4.1.2 p1.1) -- Summary: lack of warning when initializing a class member from an uninitialized variable Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pentek dot imre at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36866
[Bug c++/36866] lack of warning when initializing a class member from an uninitialized variable
--- Comment #1 from pentek dot imre at gmail dot com 2008-07-17 19:16 --- Created an attachment (id=15925) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15925&action=view) any.cpp -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36866