[llvm-bugs] [Bug 27713] New: aterializeTemporaryExpr bug

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 11 08:26:10 PDT 2016


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

            Bug ID: 27713
           Summary: aterializeTemporaryExpr bug
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: piotr.padlewski at gmail.com
                CC: klimek at google.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

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

Test that fails, and I think it shouldn't

std::string VectorString =
      "struct vector { void push_back(const string&) {} }; ";
  EXPECT_TRUE(matches(ClassString + VectorString + "void test() {"
                                                   "  vector v;"
                                                   "  v.push_back(string()); "
                                                   "}",
                      cxxMemberCallExpr(has(materializeTemporaryExpr()))));

Diff in attachment

-- 
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/20160511/90ef9935/attachment.html>


More information about the llvm-bugs mailing list