From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91384 invoked by alias); 16 Sep 2015 07:56:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 91296 invoked by uid 48); 16 Sep 2015 07:56:02 -0000 From: "development@faf-ltd.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/59812] Missing aggressive loop optimization warning Date: Wed, 16 Sep 2015 07:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: development@faf-ltd.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg01289.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59812 Peter VARGA changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |development@faf-ltd.com --- Comment #4 from Peter VARGA --- Good, but why does not produce this test case any warning: #include #include using namespace std; int main() { complex delta; complex mc[4] = {0}; for(int di = 0; di < 4; di++, delta = mc[di]) { cout << "di:" << di << " delta:" << delta << endl; } return 0; } it is an endless loop. According this threads http://stackoverflow.com/questions/32506643/c-compilation-bug , http://blog.regehr.org/archives/918 I understand it was fixed.