https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108651
Bug ID: 108651 Summary: Array Constructor with [type-spec:: fails to apply to all values, eg x = [integer(int64):: 1,2,3,4] Product: gcc Version: 11.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: Boyce at engineer dot com Target Milestone: --- Created attachment 54399 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54399&action=edit Source code, bash file to compile, and error message Array Constructor with type-spec:: failes to convert all values in the array. This is similar to Bug 48478 - Array-constructor with type-spec: reject valid/accept invalid But the error still occurs for integer arrays. for example, use, intrinsic:: iso_fortran_env, only: int64 integer(int64), dimension(2), parameter:: arr1 = [integer(int64):: 1, 2] ! should be equivalent to integer(int64), dimension(2), parameter:: arr2 = [1_int64, 2_int64] I tested this code with with 11.3.0 and 12.1.0 I attached a simple code, the resulting error message, and bash file for compiling to create the error. This code has the following line: INTEGER(INT64), dimension(2), parameter:: arr1 = [integer(int64):: -3300711175878204139, 8258803693257250632] which raises: Error: Integer too big for its kind at (1). This check can be disabled with the option ‘-fno-range-check’