[patch, Fortran] Fix PR 60526, variable name has already been declared as a type
Thomas Koenig
tkoenig@netcologne.de
Thu Feb 4 22:03:00 GMT 2016
Hello world,
For a type 'foo', we use a symtree 'Foo'. This led to accept-invalid
when a variable name was already declared as a type. This rather
self-explanatory patch fixes that.
Regression-tested. OK for trunk and 5? (Do we still care about 4.9?)
Regards
Thomas
2016-02-03 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/60526
* decl.c (build_sym): If the name has already been defined as a
type, issue error and return false.
2016-02-03 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/60526
* gfortran.dg/type_decl_4.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2.diff
Type: text/x-patch
Size: 1039 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20160204/2debead6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: type_decl_4.f90
Type: text/x-fortran
Size: 225 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20160204/2debead6/attachment-0001.bin>
More information about the Fortran
mailing list