about summary refs log tree commit diff
path: root/src/libexpr/parser.y
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-05-07T12·43+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-05-07T12·43+0000
commit01e58adce0767f1a484d80fcbcf67c7945cbc146 (patch)
treee4d644b176cc3d73ccdb6dc6b1eb671721fff02b /src/libexpr/parser.y
parent83d7b89660ebb942ad844b9be260492b2ea9fb24 (diff)
* Store position info for inherited attributes.
Diffstat (limited to 'src/libexpr/parser.y')
-rw-r--r--src/libexpr/parser.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index 99980240f823..7236bab19ce5 100644
--- a/src/libexpr/parser.y
+++ b/src/libexpr/parser.y
@@ -377,8 +377,9 @@ binds
       foreach (vector<Symbol>::iterator, i, *$3) {
           if ($$->attrNames.find(*i) != $$->attrNames.end())
               dupAttr(*i, makeCurPos(@3, data), $$->attrNames[*i]);
-          $$->inherited.push_back(*i);
-          $$->attrNames[*i] = makeCurPos(@3, data);
+          Pos pos = makeCurPos(@3, data);
+          $$->inherited.push_back(ExprAttrs::Inherited(*i, pos));
+          $$->attrNames[*i] = pos;
       }
     }
   | binds INHERIT '(' expr ')' ids ';'