Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4053336
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:26:02+00:00 2026-05-20T14:26:02+00:00

According to the Fortran standards information I could find (F77,F90/95) an array declarator where

  • 0

According to the Fortran standards information I could find (F77,F90/95) an array declarator where there is no lower bound assumes that this lower bound is 1. As the upper bound needs to be larger than or equal to the lower bound, this would make the following statement not allowed:

INTEGER A(0)

However, I cannot make ifort nor gfortran complain in any way about that statement. Is the compiler not required to flag this as an error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:26:03+00:00Added an answer on May 20, 2026 at 2:26 pm

    As the upper bound needs to be larger than or equal to the lower bound, this would make the following statement not allowed.

    From Fortran 2008 Standard:

    5.3.8.2 Explicit-shape array
    […]
    3 The values of each lower-bound and upper-bound determine the bounds of the array along a particular dimension and hence the extent of the array in that dimension. If lower-bound appears it species the lower bound; otherwise the lower bound is 1. The value of a lower bound or an upper bound may be positive, negative, or zero. The subscript range of the array in that dimension is the set of integer values between and including the lower and upper bounds, provided the upper bound is not less than the lower bound. If the upper bound is less than the lower bound, the range is empty, the extent in that dimension is zero, and the array is of zero size.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to the information I could gather on .NET and Java execution environment, the
According to W3C standards, if you have a nillable element with a nil value,
In the book Fortran 95/2003 for Scientists and Engineers , there is much talk
According to what I've heard, integer values that are not the processor's word size
According to MDN documentation for JSON.stringify : Properties of non-array objects are not guaranteed
According to the PHP Documentation PDO::prepare() adds quotes to all your parameters so that
According to Microsoft ( link ), there are two ways to start a task:
According to this article I know, that DateTimePicker control does not reflect CurrentUICulture So,
According to C++11 9.1/7 (draft n3376) , a standard-layout class is a class that:
According to my class notes, you can allocate an array in C++ like int

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.