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

--- Comment #3 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
This code can not be compiled:

cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is
valid for C/ObjC but not for C++
bug.C: In function 'int q()':
bug.C:6:9: warning: empty parentheses were disambiguated as a function
declaration [-Wvexing-parse]
    6 |   int r ();
      |         ^~
bug.C:6:9: note: remove parentheses to default-initialize a variable
    6 |   int r ();
      |         ^~
      |         --
bug.C:25:19: error: 's' was not declared in this scope
   25 |                   s (-l, ~0);
      |                   ^
bug.C:26:19: error: 't' was not declared in this scope
   26 |                   t (j);
      |                   ^
bug.C:27:43: error: 'u' was not declared in this scope
   27 |                   d = d + (a & 10000000 ? u (r, 2) : b);
      |                                           ^
bug.C:31:13: error: 's' was not declared in this scope
   31 |         p ? s () : 0;
      |             ^
bug.C:33:1: warning: no return statement in function returning non-void
[-Wreturn-type]
   33 | }

Reply via email to