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

--- Comment #2 from Jonny Grant <jg at jguk dot org> ---
(In reply to Xi Ruoyao from comment #1)
> I believe attempting to doing so would result exponential time complexity.


Ah ok, I didn't realise it would be complex.

I don't know enough about the internals, I was just thinking it could use the
[2] to know that it had got 2 elements, and that } closing brace was needed
before the comma.

ie.
<source>:5:10: error: expected '}' before ',' token
    5 | {"E", "F",
      |          ^

Or I thought it could just count the number of braces, and when it got to the
3rd open brace {


ie.
<source>:6:2: error: expected '}' before '{' token
    5 | {"E", "F",
      | ^

Reply via email to