This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67961] Incorrect type of meber of struct in error message
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Oct 2015 14:14:44 +0000
- Subject: [Bug c++/67961] Incorrect type of meber of struct in error message
- Auto-submitted: auto-generated
- References: <bug-67961-4 at http dot gcc dot gnu dot org/bugzilla/>
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.