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] |
As a follow-on I will check that all other types are handled correctly in this situation, not just character types.
Index: io/list_read.c =================================================================== --- io/list_read.c (revision 107242) +++ io/list_read.c (working copy) @@ -700,9 +700,10 @@ read_integer (int length) /* Read a character variable. */ static void -read_character (int length __attribute__ ((unused))) +read_character (int length) { char c, quote, message[100]; + int i; quote = ' '; /* Space means no quote character. */ @@ -724,6 +725,11 @@ read_character (int length __attribute__ goto get_string; default: + if (namelist_mode && comma_flag) + { + unget_char (c); + return; + } push_char (c); goto get_string; }
Attachment:
namelist_21.f90
Description: application/extension-f90
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |