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/84900] Compiler report a error unexpectedly.


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.

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