https://bugs.llvm.org/show_bug.cgi?id=49501

            Bug ID: 49501
           Summary: Lambda template crashes with trailing return type
                    containing IILE
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: crash-on-invalid, new-feature
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: unassignedclangb...@nondot.org
          Reporter: rileylev...@gmail.com
                CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
                    llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk

Created attachment 24612
  --> https://bugs.llvm.org/attachment.cgi?id=24612&action=edit
The .cpp file, the stderr, the build script,

Clang  (commit sha 2d922de3af40) crashes from the following minimal example:

int main() {
  return []<class T0 = int>(T0 x = 0)->decltype([&] { return x; }()) {
    return [&] { return x; }();
  }
  ();
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to