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

            Bug ID: 121583
           Summary: ICE on deducing function return type when the body
                    contains expansion-statement
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrey.davydov at jetbrains dot com
  Target Milestone: ---

auto test() {
    template for (int i : {1}) {
        return i;
    }
}

https://gcc.godbolt.org/z/rW8WGzdzY

Reply via email to