From dfd2bcbd3c5aa77528214c98e136ecca3f4e55a5 Mon Sep 17 00:00:00 2001 From: Tim Keith Date: Mon, 23 Apr 2018 15:33:59 -0700 Subject: [PATCH] [flang] Undo previous commit. `name` depends on the template type, so we have to explicitly say that `has` is a template with the `template` keyword. Rather than do that I'm putting back the explicit type for name. Original-commit: flang-compiler/f18@0cde87f2fe64801dbbd2172970e3d0113d421006 Reviewed-on: https://github.com/flang-compiler/f18/pull/65 --- flang/lib/semantics/rewrite-parse-tree.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang/lib/semantics/rewrite-parse-tree.cc b/flang/lib/semantics/rewrite-parse-tree.cc index 99e0d0b..7d80fd2 100644 --- a/flang/lib/semantics/rewrite-parse-tree.cc +++ b/flang/lib/semantics/rewrite-parse-tree.cc @@ -83,7 +83,7 @@ private: if (!funcRef) { return; } - auto *name = std::get_if( + parser::Name *name = std::get_if( &std::get((*funcRef)->v.t).u); if (!name || !name->symbol || !name->symbol->has()) { return; -- 2.7.4