public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109356] New: Enhancement idea to provide clearer missing brace line number
@ 2023-03-31 10:00 jg at jguk dot org
  2023-03-31 10:17 ` [Bug c++/109356] " redi at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jg at jguk dot org @ 2023-03-31 10:00 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109356
           Summary: Enhancement idea to provide clearer missing brace line
                    number
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jg at jguk dot org
  Target Milestone: ---

Sometimes due to human error there is a missing brace.
Enhancement idea to provide the missing brace line number. Is that possible?

Godbolt trunk gcc does show there is an error, but doesn't pick out line 5.
Would be great if it could

https://godbolt.org/z/nE13h1r13

<source>:8:2: error: expected '}' before ';' token
    8 | };
      |  ^
<source>:2:1: note: to match this '{'
    2 | {
      | ^
<source>:8:2: error: too many initializers for 'const char* [2]'
    8 | };
      |  ^



static const char * list[][2] =
{
    {"A", "B"},
    {"C", "D"},
    {"E", "F",
    {"G", "H"},
    {"I", "J"}
};

int main()
{
}

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-04-09 20:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-31 10:00 [Bug c++/109356] New: Enhancement idea to provide clearer missing brace line number jg at jguk dot org
2023-03-31 10:17 ` [Bug c++/109356] " redi at gcc dot gnu.org
2023-03-31 10:50 ` xry111 at gcc dot gnu.org
2023-03-31 19:52 ` jg at jguk dot org
2023-04-04 20:31 ` jg at jguk dot org
2023-04-05  9:22 ` xry111 at gcc dot gnu.org
2023-04-06 22:19 ` jg at jguk dot org
2023-04-08 14:57 ` jg at jguk dot org
2023-04-09  9:04 ` xry111 at gcc dot gnu.org
2023-04-09 20:10 ` jg at jguk dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).