1 Reply Latest reply: Apr 8, 2014 7:27 AM by Fedor-Oracle RSS

    12.4 Beta C++ : Wrong warning  when using  outer try block.

    Willoch

      Following program

       

      int main(int argc, char ** argv) try {} catch(...) {}


      compiled with:


      CC t.cc +w


      gives


      "t.cc", line 1: Warning: argc hides the same name in an outer scope.
      "t.cc", line 1: Warning: argv hides the same name in an outer scope.


      (

      int main(int argc, char ** argv)  { try {} catch(...) {} }

      does not give any warnings. )