Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8033215

clang: node.cpp:284 IDX_INIT macro use uninitialized field _out

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 9
    • 9
    • hotspot
    • Arch Linux
      clang version 3.4 (tags/RELEASE_34/final)

    • b04

    Backports

      Description

        The error message as follows, every IDX_INIT called in the initialize list will cause this warning, and I cannot make sense out of the current code.

        /home/hjen/ws/9dev/hotspot/src/share/vm/opto/node.cpp:326:10: error: field '_out' is uninitialized when used here [-Werror,-Wuninitialized]
          : _idx(IDX_INIT(req))
                 ^
        /home/hjen/ws/9dev/hotspot/src/share/vm/opto/node.cpp:284:58: note: expanded from macro 'IDX_INIT'
        #define IDX_INIT(req) this->Init((req), (Compile*) this->_out)
                                                                 ^ ^

        Attachments

          Issue Links

            Activity

              People

                henryjen Henry Jen
                henryjen Henry Jen
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: