From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67940 invoked by alias); 18 Mar 2018 17:12:32 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 67918 invoked by uid 89); 18 Mar 2018 17:12:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mo4-p05-ob.smtp.rzone.de Received: from mo4-p05-ob.smtp.rzone.de (HELO mo4-p05-ob.smtp.rzone.de) (81.169.146.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 18 Mar 2018 17:12:29 +0000 X-RZG-CLASS-ID: mo05 X-RZG-AUTH: :OGckYUunfvGNVUL0FlRnC4eRM+bOwx0tUtYTrJ/xeZX+ZVZvrbiROUdnM26VdEk= Received: from [192.168.178.68] (xdsl-78-35-138-60.netcologne.de [78.35.138.60]) by smtp.strato.de (RZmta 42.18 DYNA|AUTH) with ESMTPSA id e07842u2IHCNLbi (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sun, 18 Mar 2018 18:12:23 +0100 (CET) Subject: Re: Odd bug from Stack Overflow To: sgk@troutmask.apl.washington.edu, fortran@gcc.gnu.org References: <20180318153958.GB85774@troutmask.apl.washington.edu> From: =?UTF-8?Q?Thomas_K=c3=b6nig?= Message-ID: <5b6dfedc-425f-6e60-7ef1-4dee23eb2b27@tkoenig.net> Date: Sun, 18 Mar 2018 17:12:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180318153958.GB85774@troutmask.apl.washington.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2018-03/txt/msg00098.txt.bz2 Hi Steve, This looks like a missing conversion somewhere, because this works: program test implicit none integer, parameter :: n = 65536 real, dimension(n) :: y integer :: i y = (/ (1.0, i=1, n) /) print *,y(2) if (y(2) /= 1) stop 1 end program test Also, n=65536 is a limit... setting n=2**16-1 actually works as expected with the orginal test case. This looks like a resolution problem, not something in the scalarizer. Can you open a PR? Regards Thomas