public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24917]  New: Handling of hexadecimal constants in gfortran
@ 2005-11-17 19:11 iev at hpclab dot ceid dot upatras dot gr
  2005-11-17 20:16 ` [Bug fortran/24917] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: iev at hpclab dot ceid dot upatras dot gr @ 2005-11-17 19:11 UTC (permalink / raw)
  To: gcc-bugs

Compilation of the following program TEST.f fails:

PROGRAM HEX_TEST
INTEGER(4) MASK
MASK = 'c0'X
END

~ $ gfortran -c TEST.f
 In file TEST.f:5



      MASK = 'c0'X
     1
Error: Unclassifiable statement at (1)

whereas the following code compiles correctly:

PROGRAM HEX_TEST
INTEGER(4) MASK
MASK = X'c0'
END

As stated in http://gcc.gnu.org/ml/fortran/2005-11/msg00382.html, the first
version of the code is an extension which was supported in g77, therefore it
should also be supported in gfortran.

The compiler I used to test this is:

~ $ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.2/configure
--prefix=/home/iev/apps/gcc-4.0.2 --enable-languages=c,c++,f95
--enable-shared --enable-threads=posix --disable-checking
--with-system-zlib --enable-__cxa_atexit --disable-libgcj --disable-nls
Thread model: posix
gcc version 4.0.2


-- 
           Summary: Handling of hexadecimal constants in gfortran
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: iev at hpclab dot ceid dot upatras dot gr
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug fortran/24917] Handling of hexadecimal constants in gfortran
  2005-11-17 19:11 [Bug fortran/24917] New: Handling of hexadecimal constants in gfortran iev at hpclab dot ceid dot upatras dot gr
@ 2005-11-17 20:16 ` pinskia at gcc dot gnu dot org
  2005-11-19 15:29 ` kargl at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-17 20:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-17 20:16 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |19292
              nThis|                            |
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-17 20:16:39
               date|                            |


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


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

* [Bug fortran/24917] Handling of hexadecimal constants in gfortran
  2005-11-17 19:11 [Bug fortran/24917] New: Handling of hexadecimal constants in gfortran iev at hpclab dot ceid dot upatras dot gr
  2005-11-17 20:16 ` [Bug fortran/24917] " pinskia at gcc dot gnu dot org
@ 2005-11-19 15:29 ` kargl at gcc dot gnu dot org
  2005-11-21 22:29 ` kargl at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-11-19 15:29 UTC (permalink / raw)
  To: gcc-bugs



-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu dot org
         AssignedTo|unassigned at gcc dot gnu   |kargl at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-11-17 20:16:39         |2005-11-19 15:29:42
               date|                            |


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


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

* [Bug fortran/24917] Handling of hexadecimal constants in gfortran
  2005-11-17 19:11 [Bug fortran/24917] New: Handling of hexadecimal constants in gfortran iev at hpclab dot ceid dot upatras dot gr
  2005-11-17 20:16 ` [Bug fortran/24917] " pinskia at gcc dot gnu dot org
  2005-11-19 15:29 ` kargl at gcc dot gnu dot org
@ 2005-11-21 22:29 ` kargl at gcc dot gnu dot org
  2005-11-27 15:48 ` kargl at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-11-21 22:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from kargl at gcc dot gnu dot org  2005-11-21 22:29 -------
http://gcc.gnu.org/ml/gcc-patches/2005-11/msg01542.html


-- 


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


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

* [Bug fortran/24917] Handling of hexadecimal constants in gfortran
  2005-11-17 19:11 [Bug fortran/24917] New: Handling of hexadecimal constants in gfortran iev at hpclab dot ceid dot upatras dot gr
                   ` (2 preceding siblings ...)
  2005-11-21 22:29 ` kargl at gcc dot gnu dot org
@ 2005-11-27 15:48 ` kargl at gcc dot gnu dot org
  2005-11-27 15:51 ` kargl at gcc dot gnu dot org
  2005-11-27 15:54 ` kargl at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-11-27 15:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kargl at gcc dot gnu dot org  2005-11-27 15:47 -------
Subject: Bug 24917

Author: kargl
Date: Sun Nov 27 15:47:56 2005
New Revision: 107568

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107568
Log:
PR fortran/24917
* primary.c (match_boz_constant):  Implement postfix BOZ constants;
  (match_string_constant): Peek for b, o, z, and x

* gfortran.dg/boz_6.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/boz_6.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/primary.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/24917] Handling of hexadecimal constants in gfortran
  2005-11-17 19:11 [Bug fortran/24917] New: Handling of hexadecimal constants in gfortran iev at hpclab dot ceid dot upatras dot gr
                   ` (3 preceding siblings ...)
  2005-11-27 15:48 ` kargl at gcc dot gnu dot org
@ 2005-11-27 15:51 ` kargl at gcc dot gnu dot org
  2005-11-27 15:54 ` kargl at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-11-27 15:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from kargl at gcc dot gnu dot org  2005-11-27 15:51 -------
Subject: Bug 24917

Author: kargl
Date: Sun Nov 27 15:51:54 2005
New Revision: 107569

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107569
Log:
PR fortran/24917
* primary.c (match_boz_constant):  Implement postfix BOZ constants;
 (match_string_constant): Peek for b, o, z, and x

* gfortran.dg/boz_6.f90: New test.


Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/boz_6.f90
Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/primary.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/24917] Handling of hexadecimal constants in gfortran
  2005-11-17 19:11 [Bug fortran/24917] New: Handling of hexadecimal constants in gfortran iev at hpclab dot ceid dot upatras dot gr
                   ` (4 preceding siblings ...)
  2005-11-27 15:51 ` kargl at gcc dot gnu dot org
@ 2005-11-27 15:54 ` kargl at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-11-27 15:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from kargl at gcc dot gnu dot org  2005-11-27 15:54 -------
Fixed.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.0


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


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

end of thread, other threads:[~2005-11-27 15:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-17 19:11 [Bug fortran/24917] New: Handling of hexadecimal constants in gfortran iev at hpclab dot ceid dot upatras dot gr
2005-11-17 20:16 ` [Bug fortran/24917] " pinskia at gcc dot gnu dot org
2005-11-19 15:29 ` kargl at gcc dot gnu dot org
2005-11-21 22:29 ` kargl at gcc dot gnu dot org
2005-11-27 15:48 ` kargl at gcc dot gnu dot org
2005-11-27 15:51 ` kargl at gcc dot gnu dot org
2005-11-27 15:54 ` kargl at gcc dot gnu dot org

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).