[PATCH] D17746: Fix PR26741 -- __builtin_object_size is not consistently conservative with C++ inheritance
    Richard Smith via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Fri Mar 18 10:11:19 PDT 2016
    
    
  
rsmith added a comment.
Can you explain a bit more about the problem? It seems to me that if I have:
  struct Base {
    char k[1];
  };
  struct Derived : Base {};
... then the 'k' subobject of a `Derived` object is known to be exactly 1 byte long -- it doesn't seem obviously appropriate for our flexible-sized trailing array support to cover this case.
http://reviews.llvm.org/D17746
    
    
More information about the cfe-commits
mailing list