From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24742 invoked by alias); 10 Jul 2015 19:19:47 -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 24716 invoked by uid 48); 10 Jul 2015 19:19:43 -0000 From: "evstupac at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/66835] New: C++ openMP test failed after switching to C++14 Date: Fri, 10 Jul 2015 19:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: evstupac at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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-07/txt/msg00899.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66835 Bug ID: 66835 Summary: C++ openMP test failed after switching to C++14 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: evstupac at gmail dot com Target Milestone: --- The following test: #define max(a, b) ( (a) > (b) ? (a) : (b) ) float a[4] = {0, -1.2, 7, 0.1}; int main() { #pragma omp simd for (int j = 0; j < 4; j++) { float t1 = 0.1; a[j] = max(t1, a[j]); } return (int)(a[1] - a[3]); } fails with ICE after recent switch to std=c++14 Compiled with "-O2 -flto -fopenmp -std=c++14" The test began to fail after: commit 23a92fc764dc04a0248a570bba74db0a7f7d843d Author: tbsaunde Date: Tue Nov 11 02:31:00 2014 +0000