This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/84900] Compiler report a error unexpectedly.
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Mar 2018 22:13:24 +0000
- Subject: [Bug c/84900] Compiler report a error unexpectedly.
- Auto-submitted: auto-generated
- References: <bug-84900-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84900
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Yes, I'd consider this invalid code. Presumably there's some issue with
the GNU extension allowing casts of structs to the same type, whereby in
some cases it fails to make the result of the cast not an lvalue.