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

inadvertent formatting error from empty formatting string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.1.3
    • 4.2.0
    • Tests
    • None

    Description

      (Need monospace font to see properly)

      The following test case:

      $ cat > t.cpp << EOF

      #include <driver.h>

      int run_test (int, char**)
      {
      rw_assert (0, 0, 0, "");
      return 0;
      }

      int main ()
      {
      return rw_test (0, 0, _FILE_, "", 0, run_test, 0);
      }

      EOF

      yields:

      $ ./t

      1. INFO (S1) (8 lines):
      2. TEXT:
      3. COMPILER: gcc 3.3.4, _VERSION_ = "3.3.4"
      4. ENVIRONMENT: i386 running linux-elf 2.4.29 with glibc 2.3
      5. FILE: t.cpp
      6. COMPILED: Feb 6 2006, 13:45:04
      7. COMMENT:
        ######################################################
      1. ASSERTION (S7) (2 lines):
      2. TEXT: *** formatting error ***
      1. -----------------------------------------+
      2. DIAGNOSTIC ACTIVE TOTAL INACTIVE
      3. -----------------------------------------+
      4. (S1) INFO 1 1 0%
      5. (S7) ASSERTION 1 1 0%
      6. -----------------------------------------+

      Attachments

        Activity

          People

            sebor Martin Sebor
            lnicoara Liviu Nicoara
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: