jingham added a comment.

This is legal C++:

  #include <stdio.h>
  
  int main(int argc, char **argv)
  {
    if (argc > 1)
      {
        struct foo
        {
          long int value;
        };
        foo my_foo = {10};
        printf ("Foo: %ld.\n", my_foo.value);
  
      }
    else
      {
        struct foo
        {
          short int value;
        };
        foo my_foo = {10};
        printf ("Foo: %d.\n", my_foo.value);
      }
    return 0;
  }

Isn't this patch going to cause problems with this sort of code?


https://reviews.llvm.org/D27394



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to