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: "first use this function" incorrect for C++


Florian Weimer <fw@deneb.enyo.de> writes:

| While we are at it, do you think the undeclared_variable_notice
| explanation is really necessary? 

No, I do not.  But I would like to hear from other people.

[...]

| -	  error ("`%D' undeclared (first use this function)", name);
| +	  error ("`%D' undeclared", name);

I would prefer

         error ("'%E' undefined in this scope", name)
  
Notice the "%E" specifier.

-- Gaby


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