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++/67961] Incorrect type of meber of struct in error message


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67961

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The diagnostic is correct.

Trying to pass uint32_t to a function taking size_t causes a conversion,
creating a temporary (i.e. rvalue) size_t, but a non-const reference cannot
bind to a temporary.


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