Fix PR c++/60391
PR c++/60391
* parser.c (cp_parser_skip_to_end_of_block_or_statement): Unwind generic
function scope as per cp_parser_skip_to_end_of_statement.
PR c++/60391
* g++.dg/cpp1y/pr60391.C: New testcase.
From-SVN: r208624
+2014-03-17 Adam Butcher <adam@jessamine.co.uk>
+
+ PR c++/60391
+ * parser.c (cp_parser_skip_to_end_of_block_or_statement): Unwind generic
+ function scope as per cp_parser_skip_to_end_of_statement.
+
2014-03-17 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59571
{
int nesting_depth = 0;
+ /* Unwind generic function template scope if necessary. */
+ if (parser->fully_implicit_function_template_p)
+ finish_fully_implicit_template (parser, /*member_decl_opt=*/0);
+
while (nesting_depth >= 0)
{
cp_token *token = cp_lexer_peek_token (parser->lexer);
+2014-03-17 Adam Butcher <adam@jessamine.co.uk>
+
+ PR c++/60391
+ * g++.dg/cpp1y/pr60391.C: New testcase.
+
2014-03-17 Jakub Jelinek <jakub@redhat.com>
PR target/60516
--- /dev/null
+// PR c++/60391
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
+
+namespace N
+{
+ int operator"" _X(auto) {} // { dg-error "invalid" }
+}
+
+namespace N {}