This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cp: implementation of p1301 for C++
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Martin Sebor <msebor at gmail dot com>
- Cc: JeanHeyd Meneide <phdofthehouse at gmail dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sat, 20 Jul 2019 17:38:20 -0500
- Subject: Re: cp: implementation of p1301 for C++
- References: <CANHA4OhwJPQP=WsnNOt=41wNm5G=+oEnejpgDACwuznbp6tFTw@mail.gmail.com> <2e5975c1-6f82-e1aa-56e3-471ed421c5ff@gmail.com>
On Sat, Jul 20, 2019 at 03:48:40PM -0600, Martin Sebor wrote:
> On 7/20/19 11:29 AM, JeanHeyd Meneide wrote:
> >+[[nodiscard(123)]] int check1 (void); /* { dg-error "nodiscard attribute
> >argument.*must be a string" } */
>
> Using .* might be safe in a test with a single line of output but
> not in other tests where it might consume newlines. It's best to
Just start the string with (?n) and all is good.
Segher