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

            Bug ID: 125184
           Summary: Unable to use using declaration with std::meta::info
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: avr5309 at gmail dot com
  Target Milestone: ---

The following code fails with gcc 16+ (locally tested on Fedora 44 with 16.0.1,
and I was also able reproduce the same on compiler explorer for newer versions
of gcc):

```main.cpp
#include <meta>

auto main() -> int {
  using std::meta::info; // Causes compilation error
  // using info = std::meta::info; // This works fine though
}
```

Compile command (adding -Wall and -Wextra gives the same error):

g++ main.cpp -o main -std=c++26 -freflection

Compiler explorer link: https://godbolt.org/z/K1EK35rKr

Reply via email to