This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


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

Re: Proper test status if gdb test detects a g++ bug?


Hi Alexandre,

> Nope.  It has the form `T = RET (*PTR)(arglist)'.  In this case
> `PTR = RET2 (*PTR2)(arglist)'.  Substituting PTR in T, you'll get [1],
> not [2].
> 
> int hairyfunc5 (PFPc_PFl_i arg) =
> int hairyfunc5 (PFl_i (*arg)(char *)) =
> int hairyfunc5 (int (*(*arg)(char *))(long))

Oh.

I re-read Kernighan and Ritchie, "Complicated Declarations", and your
interpretation is right, and my interpretation is wrong.

I will change my test script and file bug reports accordingly.

Michael

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