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: error messages with ranges


    The goal here is to work towards supporting caret information in GCC

What is "caret information"?

	exprs.c:47:15:{47:8-47:14}{47:17-47:24}: error: invalid operands
    to binary expression ('int *' and '_Complex float')
	   P = (P-42) + Gamma*4;
	       ~~~~~~ ^ ~~~~~~~

Is that what "caret information" means?

I can see how this

	   P = (P-42) + Gamma*4;
	       ~~~~~~ ^ ~~~~~~~

is useful for humans, and making GCC output that information
seems like a good feature.  But why is it useful to include
the location range information for the operands?

How exactly do people propose to use that location range information?


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