This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/34228] -std=f* should diagnose used but later typed variables



------- Comment #3 from terry at chem dot gu dot se  2007-11-27 22:23 -------
> I don't worry about "len=3", I'm worrying about the type:
> 
>   data emname/'bar'/
> 
> is implicitly types REAL and then one line later comes:
> 
>   character(len=3) :: emname
> 
> I still think that this violates: "A variable that appears in a DATA statement
> and has not been typed previously may appear in a subsequent type declaration
> only if that declaration confirms the implicit typing."

Ah, yes, you're right.  I misinterpreted your concern.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]