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 C++] Fix PR77489 -- mangling of discriminator >= 10


On Wed, Jan 18, 2017 at 3:55 AM, Markus Trippelsdorf
<markus@trippelsdorf.de> wrote:
> On 2017.01.17 at 13:26 -0500, Jason Merrill wrote:
>> On Thu, Jan 12, 2017 at 2:36 AM, Markus Trippelsdorf
>> <markus@trippelsdorf.de> wrote:
> +      if (abi_version_at_least (11) && discriminator - 1 >= 10)
> +       {
> +         write_char ('_');
> +         if (abi_warn_or_compat_version_crosses (11))
> +           G.need_abi_warning = 1;

This check should be outside the abi_version_at_least block; we want
to warn if -fabi-version=10 and -Wabi=11.

Jason


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