summary refs log tree commit diff
path: root/src/libexpr/parser.y
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-03-09 14:41:02 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-03-10 10:14:50 +0100
commit049a379ec6ca755bcc077fd0e8da186ff76b8679 (patch)
tree66552a4997d66ce61d87f822d96b8786fe0c62e4 /src/libexpr/parser.y
parent908e9ce259710037ae9824a3246143e46e27e867 (diff)
downloadguix-049a379ec6ca755bcc077fd0e8da186ff76b8679.tar.gz
The expr of AttrNames/DynamicAttrDefs is always an ExprConcatStrings
Diffstat (limited to 'src/libexpr/parser.y')
-rw-r--r--src/libexpr/parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index dc995db00d..ab0b862246 100644
--- a/src/libexpr/parser.y
+++ b/src/libexpr/parser.y
@@ -488,7 +488,7 @@ attrpath
           $$->push_back(AttrName(str->s));
           delete str;
       } else
-          $$->push_back(AttrName($3));
+          $$->push_back(AttrName(static_cast<ExprConcatStrings *>($3)));
     }
   | attr { $$ = new vector<AttrName>; $$->push_back(AttrName(data->symbols.create($1))); }
   | string_attr
@@ -498,7 +498,7 @@ attrpath
           $$->push_back(AttrName(str->s));
           delete str;
       } else
-          $$->push_back(AttrName($1));
+          $$->push_back(AttrName(static_cast<ExprConcatStrings *>($1)));
     }
   ;