Re: [C++ Patch] PR 54526 (again)

2013-01-04 Thread Jason Merrill
OK. Jason

Re: [C++ Patch] PR 54526 (again)

2013-01-04 Thread Paolo Carlini
Hi, On 01/03/2013 10:56 PM, Jason Merrill wrote: On 01/03/2013 05:44 AM, Paolo Carlini wrote: + /* C++11 - 2.5 p3, bullet 2. */ Please flesh out this comment some more. Ok, I extended it like this. Thanks, Paolo. / Index: gcc/cp/parser.c ===

Re: [C++ Patch] PR 54526 (again)

2013-01-03 Thread Jason Merrill
On 01/03/2013 05:44 AM, Paolo Carlini wrote: + /* C++11 - 2.5 p3, bullet 2. */ Please flesh out this comment some more. Jason

Re: [C++ Patch] PR 54526 (again)

2013-01-03 Thread Paolo Carlini
Hi, On 01/02/2013 11:07 AM, Jakub Jelinek wrote: Hi! On Sun, Oct 28, 2012 at 12:27:40PM +0100, Paolo Carlini wrote: --- gcc/cp/parser.c (revision 192887) +++ gcc/cp/parser.c (working copy) @@ -12655,9 +12655,8 @@ cp_parser_template_id (cp_parser *parser, /* Otherwise, emit an e

Re: [C++ Patch] PR 54526 (again)

2013-01-02 Thread Jakub Jelinek
Hi! On Sun, Oct 28, 2012 at 12:27:40PM +0100, Paolo Carlini wrote: > --- gcc/cp/parser.c (revision 192887) > +++ gcc/cp/parser.c (working copy) > @@ -12655,9 +12655,8 @@ cp_parser_template_id (cp_parser *parser, >/* Otherwise, emit an error about the invalid digraph, but continue >

[C++ Patch] PR 54526 (again)

2012-10-28 Thread Paolo Carlini
Hi, as pointed out in the audit trail, my first patch for this C++11 parsing issue was misguided: I changed cp_parser_template_id but in fact C++11 wants new special *lexing* rules, which must be active outside templates too, as the additional test (and the old manded one) shows. Thus the belo

Re: [C++ Patch] PR 54526

2012-09-25 Thread Jason Merrill
On 09/25/2012 06:47 AM, Paolo Carlini wrote: if I understand correctly, in C++11 mode we should simply accept what we used to accept only with -fpermissive. Let's also mention -std=c++11 as an alternative to -fpermissive in the note. OK with that change. Jason

[C++ Patch] PR 54526

2012-09-25 Thread Paolo Carlini
Hi, if I understand correctly, in C++11 mode we should simply accept what we used to accept only with -fpermissive. Tested x86_64-linux. Thanks, Paolo. // /cp 2012-09-25 Paolo Carlini PR c++/54526 * parser.c (cp_parser_template_id): In C++11 mode simpl