[flang] Undo previous commit.
authorTim Keith <tkeith@nvidia.com>
Mon, 23 Apr 2018 22:33:59 +0000 (15:33 -0700)
committerTim Keith <tkeith@nvidia.com>
Mon, 23 Apr 2018 22:33:59 +0000 (15:33 -0700)
`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

index 99e0d0b..7d80fd2 100644 (file)
@@ -83,7 +83,7 @@ private:
     if (!funcRef) {
       return;
     }
-    auto *name = std::get_if<parser::Name>(
+    parser::Name *name = std::get_if<parser::Name>(
         &std::get<parser::ProcedureDesignator>((*funcRef)->v.t).u);
     if (!name || !name->symbol || !name->symbol->has<EntityDetails>()) {
       return;