[Bug c/84900] Compiler report a error unexpectedly.

141242068 at smail dot nju.edu.cn gcc-bugzilla@gcc.gnu.org
Mon Mar 19 08:46:00 GMT 2018


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

--- Comment #2 from wierton <141242068 at smail dot nju.edu.cn> ---
(In reply to Richard Biener from comment #1)
> I belive the code is invalid and using literal 0 instead of test = 0
> shouldn't make it accepted either.  clang rejects both variants.

I think so too, the gcc should accept the both two forms or reject them
together, but as I tested above, the gcc accept the first and reject the
second.


More information about the Gcc-bugs mailing list