Compiler may not ensure uniqueness of static variables in C++ templates

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • Code Generation Tools
    • CODEGEN-485
    • SDSCM00044227
    • C6000_7.4.0B1
    • C6000_7.4.0
    • Hide
      1. If a template function, or member function of a template class, has a static varaible, declare the function 'inline'.
      2. If a template class has a static data member with initialization by constructor, put the definition of the data member in a .cpp file rather than a .h file.
      Show
      1. If a template function, or member function of a template class, has a static varaible, declare the function 'inline'. 2. If a template class has a static data member with initialization by constructor, put the definition of the data member in a .cpp file rather than a .h file.

      Compiler may not ensure uniqueness of static variables in C++ templates

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-503 - Compiler may not ensure uniqueness ...
                SYNCHRONIZED
                • Last Sync Date: