This is the mail archive of the gcc-bugs@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]

[Bug c++/50710] ambiguity problem between bool() and string() operators, when used on a string that's a class member


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50710

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-13 01:06:11 UTC ---
The error message is pretty clear, isn't it? This is conforming behavior, there
is nothing to fix in the compiler. Maybe, I'm guessing, you want to change your
code to have one of the two operators explicit, but that is a new feature in
C++11, you have to compile with -std=gnu++0x.


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