public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29471]  New: Warn with -std=f95/f2003 when BOZ is used at invalid places
@ 2006-10-14 19:20 tobias dot burnus at physik dot fu-berlin dot de
  2006-10-16 13:34 ` [Bug fortran/29471] " tobias dot burnus at physik dot fu-berlin dot de
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: tobias dot burnus at physik dot fu-berlin dot de @ 2006-10-14 19:20 UTC (permalink / raw)
  To: gcc-bugs

gfortran allows everywhere to use a BOZ.

However, there are constrains in Fortran 95 and 2003 on where to use them.

- Fortran 95: Only in DATA and only integer
- Fortran 2003: Only in DATA or as argument of INT, REAL, DBLE, CMPLX

Expected: An ERROR (or WARNING) is shown, when -std=f95/f2003 is used.

Fortran 95:
"R407 boz-literal-constant [...]
Constraint: A boz-literal-constant may appear only in a DATA statement.[...]
If a data-statement-constant is a boz-literal-constant, the corresponding
object shall be of type integer."

Fortran 2003:
"C410 (R411) A boz-literal-constant shall appear only as a data-stmt-constant
in a DATA statement, as the actual argument associated with the dummy argument
A of the numeric intrinsic functions DBLE, REAL or INT, or as the actual
argument associated with the X or Y dummy argument of the intrinsic function
CMPLX."


-- 
           Summary: Warn with -std=f95/f2003 when BOZ is used at invalid
                    places
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tobias dot burnus at physik dot fu-berlin dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29471


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-12-12  1:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-14 19:20 [Bug fortran/29471] New: Warn with -std=f95/f2003 when BOZ is used at invalid places tobias dot burnus at physik dot fu-berlin dot de
2006-10-16 13:34 ` [Bug fortran/29471] " tobias dot burnus at physik dot fu-berlin dot de
2006-10-16 16:51 ` kargl at gcc dot gnu dot org
2006-10-16 17:12 ` tobias dot burnus at physik dot fu-berlin dot de
2006-10-16 17:23 ` kargl at gcc dot gnu dot org
2007-03-16  3:46 ` jkrahn at nc dot rr dot com
2007-03-16  3:54 ` jkrahn at nc dot rr dot com
2007-03-16  4:07 ` sgk at troutmask dot apl dot washington dot edu
2007-03-16  4:09 ` sgk at troutmask dot apl dot washington dot edu
2007-03-16  9:45 ` burnus at gcc dot gnu dot org
2007-08-12 20:10 ` fxcoudert at gcc dot gnu dot org
2007-12-08 21:47 ` burnus at gcc dot gnu dot org
2007-12-08 22:08 ` burnus at gcc dot gnu dot org
2007-12-08 22:10 ` burnus at gcc dot gnu dot org
2007-12-11 19:40 ` jkrahn at nc dot rr dot com
2007-12-11 23:15 ` burnus at gcc dot gnu dot org
2007-12-12  1:04 ` jkrahn at nc dot rr dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).