This is the mail archive of the gcc-patches@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] |
Can we first determine if this code is valid at all? Someone optimistically added the ice-on-valid keyword, but I'm not so sure if this test case you are fixing is valid code at all. In fact, I'd argue that if we accepted it in the past, that was an accepts-illegal bug.
The test case is the following:
void f(void) { 1 ? 1 : ({ a : 1; 1; }); goto a; }
So we are jumping into a statement expression. That looks wrong.
2 + ({ a: 3; }); goto a;
push 2 a: push 3 add goto a
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |