public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/60526] New: [4.7/4.8/4.9 Regression] Accepts-invalid: Variable name same as type name
@ 2014-03-14 15:16 janus at gcc dot gnu.org
  2014-03-14 15:19 ` [Bug fortran/60526] " janus at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: janus at gcc dot gnu.org @ 2014-03-14 15:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60526
           Summary: [4.7/4.8/4.9 Regression] Accepts-invalid: Variable
                    name same as type name
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: janus at gcc dot gnu.org

The following program is supposed to be invalid:

type X
end type

type(X) :: X

end


4.6 rejects it with:

type(X) :: X
            1
Error: Symbol 'x' at (1) cannot have a type


4.7, 4.8 and trunk however accept it happily. I think that is yet another
regression caused by the constructor implementation in 4.7.


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

end of thread, other threads:[~2015-06-26 20:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-14 15:16 [Bug fortran/60526] New: [4.7/4.8/4.9 Regression] Accepts-invalid: Variable name same as type name janus at gcc dot gnu.org
2014-03-14 15:19 ` [Bug fortran/60526] " janus at gcc dot gnu.org
2014-03-16  0:51 ` dominiq at lps dot ens.fr
2014-03-31  8:57 ` rguenth at gcc dot gnu.org
2014-03-31  9:44 ` rguenth at gcc dot gnu.org
2014-06-12 13:43 ` [Bug fortran/60526] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-12-19 13:27 ` [Bug fortran/60526] [4.8/4.9/5 " jakub at gcc dot gnu.org
2015-02-15 14:13 ` dominiq at lps dot ens.fr
2015-06-23  8:20 ` [Bug fortran/60526] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 19:58 ` [Bug fortran/60526] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:28 ` jakub at gcc dot gnu.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).