This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] "decomposition declaration" -> "structured binding" in C++ diagnostics
- From: Jason Merrill <jason at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 3 Jul 2017 15:50:06 -0400
- Subject: Re: [C++ PATCH] "decomposition declaration" -> "structured binding" in C++ diagnostics
- Authentication-results: sourceware.org; auth=none
- References: <20170630172630.GO2123@tucnak> <CADzB+2=Dea=Pe=APhXpRhyaG4r4-ZAerabC8QWXeMvHB9SKvgw@mail.gmail.com> <20170630193550.GQ2123@tucnak> <CADzB+2=jrQsLFG5dz7+CVCxrGsAKqgk-sYf_fhQOC5rj5VXqSQ@mail.gmail.com> <20170703160202.GY2123@tucnak>
On Mon, Jul 3, 2017 at 12:02 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> So like this?
Looks good, except...
> case sc_auto:
> - error_at (loc, "decomposition declaration cannot be declared "
> + error_at (loc, "structured binding declaration cannot be "
> "C++98 %<auto%>");
> break;
> default:
This case should just fall into the default gcc_unreachable, we aren't
going to get C++98 auto in C++17 mode.
Jason