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]

Re: [patch, fortran] PR43217 Output of Hollerith constants which are not a multiple of 4 bytes


On 08/26/2010 11:32 PM, Jerry DeLisle wrote:
On 08/26/2010 11:11 PM, Tobias Burnus wrote:
Dominique Dhumieres wrote:
gcc/fortran/primary.c doesn't compile for builds using -Werror:

../../work/gcc/fortran/primary.c: In function
'match_hollerith_constant':
../../work/gcc/fortran/primary.c:304:40: error: multi-character
character constant [-Werror=multichar]
cc1: all warnings being treated as errors

That's the line


+ e->representation.string[num + i] = '\0 ';


A typo:


'\0 ' should be '\0' !!! no space after the zero

I will fix that.

Sending        ChangeLog
Sending        arith.c
Sending        data.c
Sending        gfortran.h
Sending        primary.c
Transmitting file data .....
Committed revision 163581.

Regards,

Jerry


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