14.0.2 compiler bug

14.0.2 compiler bug

I've attached a short example (mostly declarations) that exposes a bug in 14.0.2.  The compiler is incorrectly reporting an error for a reference to the SIZE intrinsic.  The compiler appears to be confusing SIZE for some other function than the intrinsic function, though within the scope of the reference there is absolutely nothing else it could possibly be confused for.  This bug is awfully similar to several others I've reported over the last few years, though I can't say it's exactly the same.  The compiler seems to have an on-going problem with allowing the knowledge of entities leak outside of their proper scope.

AttachmentSize
Download intel-bug-20140609.f902.71 KB
3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Thank you for reporting this.  I will investigate and follow up

Patrick

I can reproduce the bogus error with ifort-14.0.  However, it's fixed in 15.0 (beta):

 

$ ifort -V
Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.0.040 Beta Build 20140428
Copyright (C) 1985-2014 Intel Corporation.  All rights reserved.

$ ifort -c intel-bug-20140609.f90
$

 

Patrick

Leave a Comment

Please sign in to add a comment. Not a member? Join today