This is the mail archive of the gcc@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: Fortran bootstrap broken


On Mon, May 18, 2009 at 3:00 PM, Tobias Burnus <burnus@net-b.de> wrote:
> Dear Gerald,
>
>> /usr/test/gcc/gcc/fortran/intrinsic.c: In function 'add_sym':
>> /usr/test/gcc/gcc/fortran/intrinsic.c:306: error: enum conversion in assignment is invalid in C++
>
> Can you try whether the following patch works? If so, you can
> commit it as obvious. (I cannot test/commit it until this evening.)
>
> Tobias
>
> Index: intrinsic.c
> ===================================================================
> --- intrinsic.c (revision 147659)
> +++ intrinsic.c (working copy)
> @@ -303,7 +303,7 @@
> ? ? ? type = (bt) va_arg (argp, int);
> ? ? ? kind = va_arg (argp, int);
> ? ? ? optional = va_arg (argp, int);
> - ? ? ?intent = va_arg (argp, int);
> + ? ? ?intent = (sym_intent) va_arg (argp, int);

  intent = va_arg (argp, sym_intent);

instead?

>
> ? ? ? if (sizing != SZ_NOTHING)
> ? ? ? ?nargs++;
>


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