Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-320

[EDG eccp] error passing SIG_ERR, SIG_IGN to signal()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.2, 4.1.3
    • 4.2.0
    • 18. Language Support
    • None
    • EDG eccp, Solaris

    Description

      $ cat t.cpp && make t
      #include <csignal>

      int main ()
      {
      std::signal (SIGABRT, SIG_DFL);
      std::signal (SIGABRT, SIG_ERR);
      std::signal (SIGABRT, SIG_IGN);
      }
      eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/eccp-3.8-11s/include -I/build/sebor/dev/stdlib/include/ansi -I/build/sebor/PlumHall/lvs06a/conform -I/build/sebor/PlumHall/lvs06a/dst.3 -A -x --template_directory=/build/sebor/eccp-3.8-11s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 --diag_suppress 177,381,191,68,550,611,997,549 t.cpp
      "t.cpp", line 6: error #167: argument of type "int" is incompatible with
      parameter of type "void (int) C"
      std::signal (SIGABRT, SIG_ERR);
      ^

      "t.cpp", line 7: error #167: argument of type "int" is incompatible with
      parameter of type "void (int) C"
      std::signal (SIGABRT, SIG_IGN);
      ^

      2 errors detected in the compilation of "t.cpp".
      make: *** [t.o] Error 2

      Attachments

        Activity

          People

            sebor Martin Sebor
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: