This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/77550] [6/7 Regression] std::deque with -O3 has infinite std::distance
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Sep 2016 12:59:19 +0000
- Subject: [Bug tree-optimization/77550] [6/7 Regression] std::deque with -O3 has infinite std::distance
- Auto-submitted: auto-generated
- References: <bug-77550-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77550
--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> ---
The patch should at least work (loads are similarly affected). At some point
we want some infrastructure in the middle-end to chose a better fallback (as
Andrew says, if possible we can use the alias-set of the containing aggregate
for example).