[llvm-bugs] [Bug 43190] New: ICE on variadic operator overload

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Sep 1 11:09:59 PDT 2019


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

            Bug ID: 43190
           Summary: ICE on variadic operator overload
           Product: clang
           Version: trunk
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Tyker1 at outlook.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

the following code makes clang trunk crash.

int f() {
  return 0;
}

enum E {};

int operator+ (E, ...) {
  return 0;
}

void d() {
  int i = E() + &f;
}

example: https://godbolt.org/z/j4F4J3

-- 
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/20190901/452d424a/attachment.html>


More information about the llvm-bugs mailing list