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:
---
--- 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
--- 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
--- 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
std::endl;
for (iter = tbl.begin(); iter != tbl.end(); iter++)
{
UserVar &var = iter->second;
std::cout << "Type = " << var.type
<< "Name = " << var.name
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
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
--- 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
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