Bug in g++

2008-02-25 Thread Philippe Hoogvorst
Hello ! AS intructed by g++ itself, I'm sending you a bug report. I tried to reduce the source file to the smallest file which triggers the bug. Maybe one can make shorter but at least this file contains no '#include' directive. Session transcript: ---

[Bug libstdc++/31825] bug in g++ a.out for stl::map

2007-05-04 Thread lbana at hotmail dot com
--- Comment #3 from lbana at hotmail dot com 2007-05-05 05:01 --- Subject: RE: bug in g++ a.out for stl::map Dear Gnu, Sorry for logging invalid bug, I should have spend some time in reading it. I thought all I need to do is pass stack variable. Anyhow thanks for the advice. -Laxman

[Bug libstdc++/31825] bug in g++ a.out for stl::map

2007-05-04 Thread pcarlini at suse dot de
--- Comment #2 from pcarlini at suse dot de 2007-05-05 00:11 --- You are only passing around a pointer to name and not allocating memory for the various "C" strings, instead overwriting each time in the loop the same char array. Well, there are also other problems in the code, like not p

[Bug libstdc++/31825] bug in g++ a.out for stl::map

2007-05-04 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-04 23:05 --- I don't think this is a bug as you changing the key from underneath of std::map. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/31825] New: bug in g++ a.out for stl::map

2007-05-04 Thread lbana at hotmail dot com
std::endl; for (iter = tbl.begin(); iter != tbl.end(); iter++) { UserVar &var = iter->second; std::cout << "Type = " << var.type << "Name = " << var.name

Re: Bug in g++ 4.1.2 when using inline function definied in cpp file but declared in h file

2007-03-22 Thread Jim Wilson
We don't track bugs reported via email. If you want to make sure you get an answer, use the bugzilla database instead. This doesn't seem to be a gcc bug though. In C++, the inline keyword is similar to what "static inline" means in GNU C, i.e. only emit the function if it is used. Since the

Bug in g++ 4.1.2 when using inline function definied in cpp file but declared in h file

2007-03-21 Thread Bartosz Wadolowski
hi i found bug in g++ 4.1.2 - version included with new kubuntu fiesty. to reproduce this bug i've created 3 simple files a.h, a.cpp and main.cpp //a.h #ifndef A_H #define A_H class A{ public: void b(int c); private: int d; }; #endif //a.cpp #include "a.h" inline

[Bug c++/30679] One RTTI bug in g++(4.1.0) .

2007-02-02 Thread sailzeng at tencent dot com
--- Comment #1 from sailzeng at tencent dot com 2007-02-03 07:19 --- I am sorry . I find this bug have not relation with gcc. <-L/usr/local/mysql/lib -lmysqlclient_r -lmygcc > cause this bug. MySQL could compile with -fno-rtti. By the way ,I find if I adjust link parameter order. Progra

[Bug c++/30679] New: One RTTI bug in g++(4.1.0) .

2007-02-02 Thread sailzeng at tencent dot com
tk --enable-gtk-cairo --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --without-system-libunwind --with-cpu=generic --host=i586-suse-linux Thread model: posix gcc version 4.1.0 (SUSE Linux) -- Sum