This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] [PR2204] Check for parameters of abstract types(partial fix)
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: "Giovanni Bajo" <giovannibajo at libero dot it>, <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 09 Feb 2004 18:26:16 -0800
- Subject: Re: [C++ PATCH] [PR2204] Check for parameters of abstract types(partial fix)
- References: <1c9c01c3ef6c$71c10f10$9cba2997@bagio><m3vfmf3ctv.fsf@uniton.integrable-solutions.net>
Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
> "Giovanni Bajo" <giovannibajo@libero.it> writes:
>
> | if (TREE_CODE (decl) == VAR_DECL)
> | ! error ("%Jcannot declare variable `%D' to be of abstract type `%T'",
> | ! decl, decl, type);
>
> That is an abuse of %J. Use error_at instead.
[etc]
I told Giovanni that error/warning/pedwarn_at were to be eliminated in
favor of %J. Did I misunderstand what you've said about these in the
past?
zw