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++/49812] strange return type for built-in operator++(int, int)


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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-05 14:42:00 UTC ---
operator++ isn't returning void.  The problem is that GCC is treating it as a
volatile prvalue, which can't bind to either const volatile int& or const int&.
 But int prvalues shouldn't have cv-quals.


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