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: [PATCH, Committed] Fix PR c++/28669 another warning() localisation issue


Dirk Mueller <dmueller at suse dot de> writes:

> 2006-10-30  Dirk Mueller  <dmueller@suse.de>
>  
>  PR c++/28669
>  * decl.c (grokfndecl): Duplicate warning message for
>  easier translation.

> -      error ("%smember function %qD cannot have cv-qualifier",
> -           (ctype ? "static " : "non-"), decl);
> +      error (ctype
> +             ? G_("static member function %qD cannot have cv-qualifier")
> +             : G_("non-static member function %qD cannot have cv-qualifier"),
> +            decl);

I don't think this is right; the message in the !ctype case was previously
"non-member function %qD cannot have cv-qualifier".

-- 
Jonathan Lennox
lennox at cs dot columbia dot edu


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