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

EDG eccp 3.7] misconfiguration due to ill-formed C++ code in libc_decl.sh

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 4.1.3
    • 4.1.4
    • Configuration
    • None
    • EDG eccp 3.7

    Description

      EDG eccp 3.7 (released in January '06) started to issue a new error (see below). The error is causing all config tests for the presence of libc function declarations in libc headers to fail.

      eccp -c -DCHECK_DECL -A -x --template_directory=/build/sebor/eccp-3.7-15s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 -DHDRNAME=<math.h> -DFUNNAME=acos -DFUN=acos(0.0) -DTAKE_ADDR=0 /tmp/libc_decl_tmpsrc-27371.cpp -o /tmp/acos-27371.o && eccp /tmp/libc_decl_tmpsrc-27371.cpp --template_directory=/build/sebor/eccp-3.7-15s/lib /usr/lib/libpthread.so -lm
      "/tmp/libc_decl_tmpsrc-27371.cpp", line 13: error #961-D: use of a type with
      no linkage to declare a variable with linkage
      } funptri;
      ^

      1 error detected in the compilation of "/tmp/libc_decl_tmpsrc-27371.cpp".

      Note that gcc detects the same violation but only issues a warning:
      non-local variable '<anonymous union> u' uses anonymous type

      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: