Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-8461

enums from #included file inside a class are not accessible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • Qt Creator 2.6.1, Qt Creator 2.8.0-beta
    • C/C++/Obj-C++ Support
    • None

    Description

      enum.h:

      enum Bar { Foo1, Foo2 };

      enum.cpp:

      class Foo
      {
      public:
      #include "enum.h"
      };
      
      void foo()
      {
          Foo:: // Foo1, Foo2 should appear but they don't
          Bar bar = Foo1; // Wrongfully recognized as a global type
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            orgads Orgad Shaneh
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes