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

            Bug ID: 123617
           Summary: [reflection] annotation in default arg
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

Here:

```
#include <meta>
using namespace std::meta;

void g([[=1]] int a = [: constant_of(annotations_of(^^a)[0]) :]);
void h() {
  g();
}
```

we should probably call g(1), but we reject this:

error: 'a' has not been declared

Blocked by bug 62244.

Reply via email to