https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114868

Nathaniel Shead <nshead at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           Assignee|unassigned at gcc dot gnu.org      |nshead at gcc dot 
gnu.org
                 CC|                            |nshead at gcc dot gnu.org
   Target Milestone|---                         |14.2
   Last reconfirmed|                            |2024-05-01
             Status|UNCONFIRMED                 |ASSIGNED
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=114683

--- Comment #2 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
Fixed for GCC 15 so far.  Non-functions don't always work, which is largely
tracked in PR c++/114683. We also might not correctly differentiate unscoped
enums from using enum declarations for this purpose, but it's hard to tell
before PR114683 is fixed.

For instance:


  // using_enum_a.cpp
  module;
  namespace foo {
    enum class a { x, y, z };
  }
  export module M:a;
  namespace bar {
    export using enum foo::a;
  }

  // using_enum_b.cpp
  export module M;
  export import :a;

  // using_enum_c.cpp
  import M;
  int main() {
    auto x = bar::x;
  }

Reply via email to