tbaederr wrote:

This patch regresses the following test case from 
`CXX/expr/expr.const/p2-0x.cpp`:
```c++
    char melchizedek[2200000000];
    typedef decltype(melchizedek[1] - melchizedek[0]) ptrdiff_t;
    constexpr ptrdiff_t d1 = &melchizedek[0x7fffffff] - &melchizedek[0]; // ok
```

Because we can now only allocate `2'147'483'635` elements in that array.


https://github.com/llvm/llvm-project/pull/169769
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to