This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strange warnings from GCC++ 4.6.2 in Atmel Studio 6


On 12/17/2012 03:25 PM, George H. Barbehenn wrote:

I'm not sure why the compiler is confusing the overloads, is "String st"
somehow equivalent to "char *st"?

This depends on your environment, GCC doesn't provide a String type.


I suspect that GCC and the C++03 standard resolve the call to the char * variant of the method, and do not take a constructor String(const char *) into account, even if it existed.

--
Florian Weimer / Red Hat Product Security Team


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]