[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-08 Thread anickol at yahoo dot com
--- Comment #8 from anickol at yahoo dot com 2009-04-08 07:12 --- One of the questions which immediately come up, which data type is $foo (implicit typing) One interpretation of implicit typing of Fortran is: I-N are integers, everything else is real. I think the issue had come up

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-08 Thread anickol at yahoo dot com
--- Comment #9 from anickol at yahoo dot com 2009-04-08 07:39 --- Update regarding implicit rules: FORTRAN 77 standard clearly says that: A first letter of I, J, K, L, M, or N implies type integer and ANY OTHER letter implies type real FORTRAN 66 standard has similar statement. This

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-08 Thread kargl at gcc dot gnu dot org
--- Comment #10 from kargl at gcc dot gnu dot org 2009-04-08 13:33 --- (In reply to comment #8) I already know that the following compilers do support $ as the first symbol: Intel Fortran 9.1 Open Watcom Fortran 1.8 MS Fortran for DOS 5.1 Open Watcom Fortran implicit type for

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-08 Thread dominiq at lps dot ens dot fr
--- Comment #11 from dominiq at lps dot ens dot fr 2009-04-08 14:06 --- Note that the following code program test a$a = 12 $a = 12! error $i = 11 $b = 0.5 print *, a$a, $a, $b, $i end when compiled with ifort: 12.0

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-08 Thread dfranke at gcc dot gnu dot org
--- Comment #12 from dfranke at gcc dot gnu dot org 2009-04-08 14:14 --- How about this addition to the docs? Index: invoke.texi === --- invoke.texi (revision 145538) +++ invoke.texi (working copy) @@ -256,7 +256,9 @@ the

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-08 Thread dominiq at lps dot ens dot fr
--- Comment #13 from dominiq at lps dot ens dot fr 2009-04-08 14:17 --- How about this addition to the docs? ... Nice! then close as wontfix. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39670

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-08 Thread burnus at gcc dot gnu dot org
--- Comment #14 from burnus at gcc dot gnu dot org 2009-04-08 17:26 --- (In reply to comment #12) +++ invoke.texi (working copy) -Allow @samp{$} as a valid character in a symbol name. +Allow @samp{$} as a valid non-first character in a symbol name. Symbols +that start with @samp{$}

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-08 Thread dfranke at gcc dot gnu dot org
--- Comment #15 from dfranke at gcc dot gnu dot org 2009-04-08 17:42 --- Subject: Bug 39670 Author: dfranke Date: Wed Apr 8 17:42:32 2009 New Revision: 145764 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=145764 Log: 2009-04-08 Daniel Franke franke.dan...@gmail.com

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-08 Thread jb at gcc dot gnu dot org
--- Comment #16 from jb at gcc dot gnu dot org 2009-04-08 18:24 --- Subject: Bug 39670 Author: jb Date: Wed Apr 8 18:23:55 2009 New Revision: 145767 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=145767 Log: 2009-04-08 Janne Blomqvist j...@gcc.gnu.org PR fortran/39670

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-08 Thread jakub at gcc dot gnu dot org
--- Comment #17 from jakub at gcc dot gnu dot org 2009-04-08 19:29 --- Note also that in the ATT assembly style for i386/x86_64 (the default in gcc), leading $ changes the instructions. movl a_, %eax means read the value from a_ variable into eax, movl $a_, %eax means set eax to the

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-07 Thread dfranke at gcc dot gnu dot org
--- Comment #1 from dfranke at gcc dot gnu dot org 2009-04-07 08:42 --- Confirmed. Checked 4.3.4 and 4.5.0, both complain about '$a'. Question is, if this is allowed at all. In comparison: digits are allowed in function names, but not as the first character; 'FUNCTION f3()' is valid,

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-07 Thread anickol at yahoo dot com
--- Comment #2 from anickol at yahoo dot com 2009-04-07 08:59 --- As I already said, I have code, being compiled with MS Fortran, that has a lot of variable names starting with $. MS Fortran allows it. My personal opinion is that the Fortran compiler's primary use is support of the

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-07 Thread dominiq at lps dot ens dot fr
--- Comment #3 from dominiq at lps dot ens dot fr 2009-04-07 09:12 --- Question is, if this is allowed at all. In comparison: digits are allowed in function names, but not as the first character; 'FUNCTION f3()' is valid, 'FUNCTION 3f()' is not. My fortran book says: names must

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-07 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2009-04-07 10:18 --- Note that '$a' is also rejected by g77. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39670

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-07 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-04-07 13:43 --- Many compilers support $ signs as extension (ISO standard Fortran does not). However, only a few support a leading $ sign. One of the questions which immediately come up, which data type is $foo (implicit typing). I

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-07 Thread kargl at gcc dot gnu dot org
--- Comment #6 from kargl at gcc dot gnu dot org 2009-04-07 14:46 --- (In reply to comment #2) As I already said, I have code, being compiled with MS Fortran, that has a lot of variable names starting with $. MS Fortran allows it. My personal opinion is that the Fortran compiler's

[Bug fortran/39670] dollar sign in entities is not recognized when it is first symbol

2009-04-07 Thread kargl at gcc dot gnu dot org
--- Comment #7 from kargl at gcc dot gnu dot org 2009-04-07 14:54 --- (In reply to comment #5) Many compilers support $ signs as extension (ISO standard Fortran does not). However, only a few support a leading $ sign. One of the questions which immediately come up, which data type is