[llvm-bugs] [Bug 31422] New: ICE in frontend

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Dec 18 07:35:35 PST 2016


            Bug ID: 31422
           Summary: ICE in frontend
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bbannier at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17768
  --> https://llvm.org/bugs/attachment.cgi?id=17768&action=edit

I came across the attached segfault when compiling the following incorrect
program in C++1z mode,

    template <typename F> struct S {
      T f;
      template <typename... Ts> operator auto()(Ts &&... xs) const { return
f(xs...); }

I would expect clang to just reject the program, e.g., with the existing error
message, instead of segfaulting.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161218/27c4bd5a/attachment.html>

More information about the llvm-bugs mailing list