diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-08-26T14·05+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-08-26T14·05+0000 |
commit | 99dc3e613a2ce30474fff92151abf165d017c26d (patch) | |
tree | 5ba36264d98d0763f8b137bac238e6b20443f6fc /src | |
parent | d06be428f6dd046c89a69995d5328b8250bec3d2 (diff) |
* Require that __overrides is defined as a non-recursive attribute
(which means it can only be defined via "inherit"), otherwise we get scoping bugs, since __overrides can't be recursive (or at least, it would be hard).
Diffstat (limited to 'src')
-rw-r--r-- | src/libexpr/eval.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index ef1408b50358..01d33ad00c6b 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -181,11 +181,11 @@ LocalNoInline(ATerm expandRec(EvalState & state, ATerm e, ATermList rbnds, ATerm ATermMap subs(ATgetLength(rbnds) + ATgetLength(nrbnds)); for (ATermIterator i(rbnds); i; ++i) { if (!matchBind(*i, name, e2, pos)) abort(); /* can't happen */ - if (name == sOverrides) eOverrides = e2; subs.set(name, makeSelect(e, name)); } for (ATermIterator i(nrbnds); i; ++i) { if (!matchBind(*i, name, e2, pos)) abort(); /* can't happen */ + if (name == sOverrides) eOverrides = e2; subs.set(name, e2); } |