This is the mail archive of the gcc-patches@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] |
The following code program hum print *, (//) end program hum currently gives an ICE: hum.f90: In function 'MAIN__': hum.f90:3: internal compiler error: in gfc_typenode_for_spec, at fortran/trans-types.c:631 The code is invalid, as discussed in recent thread ("Zero-size array literal") in comp.lang.fortran, but a meaningful error message would still be better than an ICE. The attached patch fixes this. Bubblestrapped and reg. tested on Linux-x86, on 4.0 and mainline. Please commit if OK. Changelog entry for patch: 2005-06-04 Erik Edelmann <erik.edelmann@iki.fi> * array.c (gfc_match_array_constructor) Treat empty array constructors as an syntax error. Changelog entry for test case (test case attached): 2005-06-04 Erik Edelmann <erik.edelmann@iki.fi> * gfortran.dg/array_constructor_3.f90: New test Erik
Attachment:
diff
Description: Text document
Attachment:
array_constructor_3.f90
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |