[llvm-bugs] [Bug 48402] Rejects valid subscript expression on array of unknown bound in constant expression
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Dec 8 09:30:48 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48402
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |---
--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Yes, you're right, we should accept that first example. The case I was thinking
of was this one:
extern const int arr[];
constexpr const int (&arrref)[] = arr;
constexpr const int *p = &arrref[2];
... where we can't determine if the pointer is valid, because we don't have a
definition of the array. We do intend to accept your example; I'm not sure why
it's being rejected.
--
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/20201208/730c37de/attachment-0001.html>
More information about the llvm-bugs
mailing list