Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8292

Cannot declare class with special names

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.04/02, 6.06/04
    • Fix Version/s: 6.08/00
    • Component/s: None
    • Labels:
      None
    • Environment:

      6.04/02 and master on SLC6 with gcc 4.9
      6.06/04 on Mac OS X 10.11.6 with Apple LLVM version 7.3.0

      Description

      It seems that it is not possible to declare a class that has the name of a function previously declared, even if the new class is in a different namespace:

      namespace A { template <typename T> class sort { sort(const T& t); }; }

      This will crash ROOT with stacktraces that differ between 6.04/6.06 and the current master. The same crash appears to occur if the class is named norm, abs, arg (and possibly others).

        Attachments

          Activity

            People

            Assignee:
            axel Axel Naumann
            Reporter:
            suhl Sebastian Uhl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: