[PATCH][C++] Fix PR65091

2015-02-21 Thread Andrea Azzarone
Hi all, please find attached a fix for pr 65071 decltype(~arg) fails for template functions. Basically we need to make sure that ~arg is considered an expression and not a dtor. 2015-02-21 Andrea Azzarone azzaro...@gmail.com PR c++/65091 * parser.c (cp_parser_decltype_expr): Make sure ~id

Re: PATCH for c++/64948

2015-02-19 Thread Andrea Azzarone
Ping? 2015-02-13 15:51 GMT+01:00 Andrea Azzarone azzaro...@gmail.com: Hi all, this patch try to fix PR c++/64948 (Lambda reference capture initialization in template function creates segmentation fault). 2015-2-13 Andrea Azzarone azzaro...@gmail.com PR c++/64948 * lambda.c

Re: [PATCH][C++] PR 65071

2015-02-18 Thread Andrea Azzarone
Ops, forgot the diff. 2015-02-18 9:19 GMT+01:00 Andrea Azzarone azzaro...@gmail.com: Hi all, this patch try to fix PR c++/65071 (ICE on valid, sizeof...() of template template parameter pack in return type). 2015-2-18 Andrea Azzarone azzaro...@gmail.com PR c++/65071 * gcc/cp/parser.c

[PATCH][C++] PR 65071

2015-02-18 Thread Andrea Azzarone
Hi all, this patch try to fix PR c++/65071 (ICE on valid, sizeof...() of template template parameter pack in return type). 2015-2-18 Andrea Azzarone azzaro...@gmail.com PR c++/65071 * gcc/cp/parser.c (cp_parser_sizeof_pack) Also consider template template parameters. Thanks. -- Andrea

PATCH for c++/64948

2015-02-13 Thread Andrea Azzarone
Hi all, this patch try to fix PR c++/64948 (Lambda reference capture initialization in template function creates segmentation fault). 2015-2-13 Andrea Azzarone azzaro...@gmail.com PR c++/64948 * lambda.c (add_capture) Do not consider as rvalues all expressions involving template parameters

Re: [PATCH] PR64959: SFINAE in UDLs

2015-02-13 Thread Andrea Azzarone
We can use the same trick used in the other tests. Patch attached. Sorry about that! 2015-02-13 20:45 GMT+01:00 Jakub Jelinek ja...@redhat.com: On Wed, Feb 11, 2015 at 12:26:33AM +0100, Andrea Azzarone wrote: * gcc/testsuite/g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C

[C++] [PATCH] - Nested namespace defintions

2015-02-12 Thread Andrea Azzarone
Hi all, would be nice to have nested namespace definitions in gcc. I'm not sure if this if it's possible to merge stuff like this at this stage. 2015-2-13 Andrea Azzarone azzaro...@gmail.com PR c++/65047 * gcc/cp/cp-tree.h Declare maybe_warn_cpp1z. * gcc/cp/error.c Define maybe_warn_cpp1z

Re: [PATCH] PR64959: SFINAE in UDLs

2015-02-10 Thread Andrea Azzarone
Hi, Thanks for the review. I updated the patch. 2015-2-9 Andrea Azzarone azzaro...@gmail.com PR c++/64959 * parser.c (lookup_literal_operator): Return all candidates. (cp_parser_userdef_char_literal): Simplify error handling. (cp_parser_userdef_numeric_literal): Pass

[PATCH] PR64959: SFINAE in UDLs

2015-02-09 Thread Andrea Azzarone
long). I updated the code in parser.C and added a test. Please note that this is my first gcc patch :) 2015-2-9 Andrea Azzarone azzaro...@gmail.com PR c++/64959 * gcc/cp/parser.c: Make sure lookup_literal_operator returns all the possible candidates. Also improve the diagnostic messages