From 2ea345dcda82b7ef2422f3da8f3b4bd47353d523 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 12 May 2017 21:18:59 -0400 Subject: [PATCH 14/14] FIXME: WIP on function template return type location --- gcc/cp/parser.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 8676dfc..435ff00 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -26937,6 +26937,13 @@ cp_parser_single_declaration (cp_parser* parser, bool explicit_specialization_p, bool* friend_p) { +#if 0 + AST_NODE (parser, AST_SINGLE_DECLARATION); // HACK for function templates + // ^^^ maybe need to change + // into a AST_FUNCTION_DEFINITION if it is a function, so that + // we can later locate the return type. +#endif + int declares_class_or_enum; tree decl = NULL_TREE; cp_decl_specifier_seq decl_specifiers; -- 1.8.5.3