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

[IBM XLC++] errors compiling dynatype.cpp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2.0
    • 4.2.1
    • Examples
    • None
    • XLC++ 6.0 through 9.0/AIX 5.3

    • Patch Available
    • Compiler Error

    Description

      The dynatype.cpp example program fails to compile with IBM XLC++ 9.0 on AIX with ethe following errors:

      xlCcore_r -c -I$(TOPDIR)/include/ansi -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/examples/include -O -Q -qtemplateregistry=dynatype.ti $(TOPDIR)/examples/tutorial/dynatype.cpp
      "$(TOPDIR)/examples/tutorial/dynatype.cpp", line 203.27: 1540-0216 (S) An expression of type "dynatype" cannot be converted to type "int".
      "$(TOPDIR)/examples/tutorial/dynatype.cpp", line 209.30: 1540-0216 (S) An expression of type "dynatype" cannot be converted to type "double".
      "$(TOPDIR)/examples/tutorial/dynatype.cpp", line 215.30: 1540-0216 (S) An expression of type "dynatype" cannot be converted to type "double".
      "$(TOPDIR)/examples/tutorial/dynatype.cpp", line 222.35: 1540-0216 (S) An expression of type "dynatype" cannot be converted to type "const char *".
      "$(TOPDIR)/examples/tutorial/dynatype.cpp", line 228.35: 1540-0216 (S) An expression of type "dynatype" cannot be converted to type "const char *".
      "$(TOPDIR)/examples/tutorial/dynatype.cpp", line 238.28: 1540-0216 (S) An expression of type "dynatype" cannot be converted to type "char".
      gmake: *** [dynatype.o] Error 1

      Attachments

        1. stdcxx-605-out.patch
          0.6 kB
          Travis Vitek
        2. stdcxx-605-v1.patch
          3 kB
          Travis Vitek
        3. stdcxx-605-v2.patch
          4 kB
          Travis Vitek
        4. stdcxx-605-v3.patch
          4 kB
          Martin Sebor

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: