[Bug c/82013] better error message for missing semicolon in prototype

2024-06-11 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013

Andi Kleen  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|ASSIGNED|RESOLVED

--- Comment #8 from Andi Kleen  ---
Duplicate

*** This bug has been marked as a duplicate of bug 68615 ***

[Bug c/82013] better error message for missing semicolon in prototype

2022-05-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|9.5 |---

[Bug c/82013] better error message for missing semicolon in prototype

2021-06-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|9.4 |9.5

--- Comment #7 from Richard Biener  ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.

[Bug c/82013] better error message for missing semicolon in prototype

2020-03-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|9.3 |9.4

--- Comment #6 from Jakub Jelinek  ---
GCC 9.3.0 has been released, adjusting target milestone.

[Bug c/82013] better error message for missing semicolon in prototype

2019-08-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|9.2 |9.3

--- Comment #5 from Jakub Jelinek  ---
GCC 9.2 has been released.

[Bug c/82013] better error message for missing semicolon in prototype

2019-05-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|9.0 |9.2

--- Comment #4 from Jakub Jelinek  ---
GCC 9.1 has been released.

[Bug c/82013] better error message for missing semicolon in prototype

2018-06-15 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013

Eric Gallager  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED

--- Comment #3 from Eric Gallager  ---
Changing status to ASSIGNED because David marked himself as the assignee.

[Bug c/82013] better error message for missing semicolon in prototype

2018-03-15 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013

David Malcolm  changed:

   What|Removed |Added

 CC||dmalcolm at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |dmalcolm at gcc dot 
gnu.org
   Target Milestone|--- |9.0

[Bug c/82013] better error message for missing semicolon in prototype

2017-09-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013

--- Comment #2 from Jonathan Wakely  ---
(In reply to Andi Kleen from comment #0)
> It's especially confusing when the prototype is the last in the include
> file, because then the errors appear in another file.

Yes, that's PR c++/68615

[Bug c/82013] better error message for missing semicolon in prototype

2017-08-28 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013

Eric Gallager  changed:

   What|Removed |Added

   Keywords||diagnostic, error-recovery
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-08-28
 CC||egallager at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Eric Gallager  ---
Confirmed, here's an example:

$ cat 82013.c && /usr/local/bin/gcc -c 82013.c
int foo(int)

int foo(int i)
{
return i + i;
}
82013.c: In function ‘foo’:
82013.c:4:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’
token
 {
 ^
82013.c:1:1: error: parameter name omitted
 int foo(int)
 ^~~
82013.c:6:1: error: expected ‘{’ at end of input
 }
 ^
$

For comparison clang says:

$ /sw/opt/llvm-3.1/bin/clang -c 82013.c
82013.c:1:13: error: expected ';' after top level declarator
int foo(int)
^
;
1 error generated.
$