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

            Bug ID: 115792
           Summary: GCC accepts [] throw () {}
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

int main() {
  auto l = [] throw () {};
  l();
}

https://godbolt.org/z/GejGeKzjd

Other compilers consider it a syntax error. I currently don't know who is
right.

Reply via email to