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

            Bug ID: 43707
           Summary: Constructing objects in expressions doesn't work on
                    Windows
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev@lists.llvm.org
          Reporter: teempe...@gmail.com
                CC: jdevliegh...@apple.com, llvm-b...@lists.llvm.org

Trying to construct an object in the expression parser doesn't seem to work on
Windows.

Simple reproducer is in
test/commands/expression/ignore-artificial-constructors:

```
struct Foo {
  // Triggers that we emit an artificial constructor for Foo.
  virtual ~Foo() = default;
};

int main() {
  Foo f;
  // Try to construct foo in our expression.
  return 0; //%self.expect("expr Foo()", substrs=["(Foo) $0 = {}"])
}
```

This fails on Windows with the following error:
```
AssertionError: False is not True : Command 'expr Foo()

Error output:

error: The expression could not be prepared to run in the target

' returns successfully
```

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

Reply via email to