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]

[C++ Patch] More accurate location for conditional expressions


Hi,

a little more work on locations. Yesterday, when I patched build_new_op_1 to propagate the incoming location to cp_build_binary_op I noticed that the locations for the conditional expressions in Wdouble-promotion.C where inaccurate, essentially always pointing to the end. We can improve the situation by adding a location_t parameter to build_conditional_expr and using it from build_x_conditional_expr. I'm also happy about the error message we get for cpp0x/explicit3.C: we used to also print spurious lines of code when printing notes about built-ins (eg, for line #44).

Tested x86_64-linux.

Thanks,
Paolo.

//////////////////////////


Attachment: CL_cond_expr
Description: Text document

Attachment: patch_cond_expr
Description: Text document


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