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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Fixed by r254093; for the case in comment #0, trunk now emits:

t.c:1:2: error: expected ‘;’ before ‘typedef’
 a//sample
  ^
  ;
t.c:5:27: error: conflicting types for ‘argc’
 int main(int argc, char** argc) {}
                    ~~~~~~~^~~~
t.c:5:14: note: previous definition of ‘argc’ was here
 int main(int argc, char** argc) {}
          ~~~~^~~~

(did anyone spot the redefinition of "argc" in the 15 years since this was
opened?)

Reply via email to