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

            Bug ID: 101500
           Summary: gcc accepts the code with extra curly braces
           Product: gcc
           Version: 11.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fchelnokov at gmail dot com
  Target Milestone: ---

The following ill-formed code is the illustration
```
struct A
{
    A() {}
    A( A&& ) = delete;
    ~A() {}
};

int main() {
    const A a = {{A{}}}; //error line
}
```
https://gcc.godbolt.org/z/eq5WhTfz3

Reply via email to