[Bug c++/65920] Not able to compile a code

2015-04-28 Thread imran.siddiqui at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65920

Imran imran.siddiqui at live dot com changed:

   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|INVALID |---

--- Comment #2 from Imran imran.siddiqui at live dot com ---
Thans for the quick reply. The code is perfectly fine as it was workinng as i
mentioned earlier

But after the upgrade only it started throwing the error.

I tried repalcing char * with string in the log.cpp..but again it left me some
other errors


[Bug c/65920] Not able to compile a code

2015-04-28 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65920

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID
   Severity|critical|normal

--- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org ---
Sounds like you don't know that string is now in the std namespace.  Either add
using std::string; after the include of string.h or change all references to
string to std::string.

You need to figure out where LogFile is defined and compile that c++ file too.

This is not a GCC bug but rather an issue with your code.
If you want to ask C++ questions it is best to ask on a different place than
here.  Also how to use gcc it would be best to ask on gcc-h...@gcc.gnu.org
rather than in a bug report.


[Bug c++/65920] Not able to compile a code

2015-04-28 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65920

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #3 from Andrew Pinski pinskia at gcc dot gnu.org ---
well GCC 2.9 was not standard complaint with respect of C++ STL so the string
class was not part of the std namespace.  But that changed with 3.0 which was
over 10 years ago now.  Again this is not a question about a GCC bug but rather
a standard C++ question.