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

--- Comment #3 from Jonny Grant <jg at jguk dot org> ---
A different example where GCC does a good job of indicating the line number of
a missing comma problem.


https://godbolt.org/z/asGhE3W17


<source>:6:5: error: expected '}' before '{' token
    6 |     {"G", "H"},
      |     ^
<source>:2:1: note: to match this '{'
    2 | {
      | ^
<source>:6:5: error: expected ',' or ';' before '{' token
    6 |     {"G", "H"},
      |     ^

Reply via email to