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

Cannot declare class with special names

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • 6.04/02, 6.06/04
    • 6.08/00
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: